--- notion-id: 1766aa4d-3db0-4c4b-8acf-8e577b1f32fd --- robots.txt # 一,虚拟机PHP环境创建靶机 下载**phpstudy:** [https://www.xp.cn/](https://www.xp.cn/) 下载DVWA: [https://github.com/digininja/DVWA/blob/master/README.zh.md](https://github.com/digininja/DVWA/blob/master/README.zh.md) 六步快速建DVWA 1,下载并安装PHPstudyhttp://public.xp.cn/upgrades/PhpStudy2018.zip 2,将解压后的DVWA原代码放置phpstudy安装目录的www文件夹 3,进入DVWA/config目录,将后的.dist删除 4,打开刚刚重命名的config.inc.php文件,修改`db_use`r和`db_password`,修改为root 5,浏览器访问http://127.0.0.1/DVWA/setup.php,点击最下方的CreateDatabase 6,浏览器访问http://127.0.0.1/DVWA,输入用户名`admin`,密码`password`登录dvwa