下载apache+mysql+php 的服务组件 phpstudy
phpstudy 下载地址
https://www.baidu.com/link?url=EN5Br6PK-Gboaf905Jjt0x310ikra2SPzGtEB5a_wsoLmMorPM9jr51CLRUdACZ4AkuBUlBXHLexYwAkJRfzUfW5lc1eHpZIk6btDAHDkGe&wd=&eqid=84ee13a000001b86000000065a44a396
DVWS 下载地址
https://github.com/ethicalhack3r/DVWA/archive/master.zip
安装phpstudy 数据库默认账号密码是:root root
allow_url_fopen = On
allow_url_include = On
复制dvws网站到phpstudy根目录下面
默认账号密码: admin password
进入config目录把config.inc.php.list 改成 config.inc.php
$_DVWA[ 'db_server' ] = '127.0.0.1';
$_DVWA[ 'db_database' ] = 'dvwa';$_DVWA[ 'db_user' ] = 'root';$_DVWA[ 'db_password' ] = 'root';$_DVWA[ 'db_port '] = '3306';
$_DVWA[ 'recaptcha_public_key' ] = '6LdK7xITAAzzAAJQTfL7fu6I-0aPl8KHHieAT_yJg';
$_DVWA[ 'recaptcha_private_key' ] = '6LdK7xITAzzAAL_uw9YXVUOPoIHPZLfw2K1n5NVQ';