OWASP Mutillidae这个web渗透测试演练系统,下载(https://sourceforge.net/projects/mutillidae/files/)后解压,放到xampp的htdocs目录(xampp就是LAMP for linux,之前已经安装好,具体请看http://www.apachefriends.org/zh_cn/xampp-linux.html),现在目录应该是/opt/lampp/htdocs/mutillidae.
执行/opt/lampp/lampp start启动xampp后,浏览器输入localhost/mutillidae/就进入主界面了。
但页面顶端显示两个php的警告:
Warning: mkdir(): Permission denied in /http/mutillidae/owasp-esapi-php/lib/apache-
log4php/trunk/src/main/php/appenders/LoggerAppenderFile.php on line 63
Warning: fopen(./../test/testoutput/ESAPI_logging_file_test): failed to open stream:
No such file or directory in /http/mutillidae/owasp-esapi-php/lib/apache-log4php/trunk/src/main/php/appenders/LoggerAppenderFile.php on line 66
有个解决办法,找到php.ini文件,( ubuntu下如何查找php.ini文件:http://www.linuxdiyf.com/linux/18032.html)
把:
"error_reporting = E_ALL"
这行改为下面这样:
"error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECIATED & ~E_STRICT".
然后重启apache服务(若是xampp安装的,运行 /opt/lampp/lampp restart 重启apache,刷新页面,警告就消失了。)