DWVA测试环境搭建

下载1:http://www.dvwa.co.uk/
下载2:https://github.com/ethicalhack3r/DVWA

1.将压缩包解压到php集成环境的主目录下(www目录)
2.\DVWA\config\目录下的config.inc.php.dist文件更改为\config.inc.php
3.打开PHP配置文件(php.ini),开启这个两个功能allow_url_fopen = On;allow_url_include = On
4.如果出现:reCAPTCHA key: Missing
修改配置文件config.inc.php(..\DVWA\config\config.inc.php)

$_DVWA[ ‘recaptcha_public_key‘ ] = ‘ ‘;
$_DVWA[ ‘recaptcha_private_key‘ ] = ‘ ‘;

修改为

$_DVWA[ ‘recaptcha_public_key‘ ] = ‘6LdK7xITAAzzAAJQTfL7fu6I-0aPl8KHHieAT_yJg‘;
$_DVWA[ ‘recaptcha_private_key‘ ] = ‘6LdK7xITAzzAAL_uw9YXVUOPoIHPZLfw2K1n5NVQ‘;

5.点击“Create/Reset Database”按钮时如果出现“Could not connect to the database - please check the config file.”的错误信息。那么请打开DVWA/config/config.inc.php文件,更改相应需要修改的部分(如设置密码和端口)

你可能感兴趣的:(Osmosis)