当前位置:网站首页>利用phpstudy搭建DVWA
利用phpstudy搭建DVWA
2022-07-31 05:10:00 【不习惯有你】
1.准备阶段
a.下载phpstud安装包
b.官网下载DVWA安装包
2.开始搭建DVMA
a.解压好DVWA的zip文件后,放到phpstudy的根目录中,并新增站点域名设置。(我的前一篇文章讲过phpstudy搭建网站)

b.到phpstudy\WWW\DVWA\config路径下将config.inc.php.dist复制文件将后缀.dist去掉。

c.打开config.inc.php文件,db_server为本地服务器127.0.0.1,db_database为 连接的数据库名dvwa,db_user为数据库的用户,db_password为数据库的密码。(可根据自己的数据库做出调整,我首先打开phpstudy的cmd创建一个dvwa库,然后将db_password的值改为了root,因为我的数据库密码为root,root。)

操作结果如下:


d.在phpstudy的终端中,打开创建的dvwa库,查看user表中的管理员密码。使用MD5解码,登录admin账户。
e.如果出现乱码,打开phpstudy\WWW\DVWA\dvwa\includes中的dvwaPage.inc.php文件,将里面的utf-8全部改为gb2312


DVWA登录后为下面这样子说明搭建成功。那就开心的在渗透测试的海洋里遨游。

这是我在安装中碰见的一些问题,如果碰见其他的问题可以一起探讨。
边栏推荐
- 闭包(五)----一个常见的循环
- 剑指offer专项突击版 --- 第 4 天
- Three-party login using wallet Metamask based on web3.0
- The interviewer asked me how to divide the database and the table?Fortunately, I summed up a set of eight-part essays
- Swordsman Offer Special Assault Edition --- Day 3
- C语言实验五 循环结构程序设计(二)
- 闭包(二)
- 剑指offer基础版 --- 第21天
- Flink sink redis 写入Redis
- 字符串的新增方法
猜你喜欢
随机推荐
mysql 的简单运用命令
Paginate the list collection and display the data on the page
uni-app进阶之样式框架/生产环境【day10】
Redis first meeting
Interviewer: If the order is not paid within 30 minutes, it will be automatically canceled. How to do this?
The process and specific code of sending SMS verification code using flask framework
uni-app进阶之认证【day12】
数据库上机实验4 数据更新和视图
Redis 事务学习有感
C语言如何分辨大小端
剑指offer基础版 --- 第21天
代码块、Package,Import,封装(第六天)
Anaconda configure environment directives
C语言实验四 循环结构程序设计(一)
With MVC, why DDD?
PAT_乙级_真题练习_1007_素数对猜想
Interviewer, don't ask me to shake hands three times and wave four times again
数据库上机实验5 数据库安全性
剑指offer基础版 ----- 第28天
Redis:安装使用








