phpstudy安装dvwa
1. 下载phpstudy
Windows版phpstudy下载 - 小皮面板(phpstudy) (xp.cn)
2. 搭建dvwa靶场
下载地址:https://github.com/ethicalhack3r/DVWA/archive/master.zip
将其放入www文件夹中
3. 修改配置文件
- 将\DVWA-master\config中config.inc.php.dist复制一份,改名为config.inc.php
- 修改信息为自己机器上的信息,db_database随意输入
- 开启服务
- 点击创建数据库
http://localhost/DVWA-master/setup.php
![image-20240318215913434](https://img-blog.csdnimg.cn/img_convert/fba116e965ab4e8392be28d1e531064e.png)
- 打开网站
https://www.google.com/recaptcha/admin/create
![image-20240318215308519](https://img-blog.csdnimg.cn/img_convert/74354d889062d08645dbd1373a1c72cb.png)
- 填写
example.com
将密钥写入config.inc.php,重新生成数据库
$_DVWA[ 'recaptcha_public_key' ] = '6Lev_PQpAAAAAAI72a6L4aGfBpqfqggOqmWUfZ32';
$_DVWA[ 'recaptcha_private_key' ] = '6Lev_PQpAAAAAIj_jxEK8mcXFugJkiBk0roWax4Y';
账号admin 密码password
完成
http://localhost/dvwa-master/index.php (搭建完成)
7986916771)]
完成
http://localhost/dvwa-master/index.php (搭建完成)