萌新在搭建XVWA靶场时遇见的问题

萌新在搭建XVWA靶场时遇见的问题

0x01 准备工作

首先前往GitHub下载XVWA靶场
XVWA
下载后进行解压,最好为全英文目录。

本人使用小皮面板(phpstudy pro)进行搭建
将解压文件放入小皮面板安装目录下的WWW文件夹
在这里插入图片描述

0x02 启动

创建网站
在这里插入图片描述
点击右侧 管理-打开网站
即可看到成功报错
在这里插入图片描述


Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO) in E:\phpstudy_pro\WWW\xvwa-master-test\config.php on line 7

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) in E:\phpstudy_pro\WWW\xvwa-master-test\config.php:8 Stack trace: #0 E:\phpstudy_pro\WWW\xvwa-master-test\config.php(8): PDO->__construct('mysql:host=loca...', 'root', '') #1 E:\phpstudy_pro\WWW\xvwa-master-test\header.php(18): include('E:\\phpstudy_pro...') #2 E:\phpstudy_pro\WWW\xvwa-master-test\index.php(34): include('E:\\phpstudy_pro...') #3 {main} thrown in E:\phpstudy_pro\WWW\xvwa-master-test\config.php on line 8

经过简单的分析可以看出是数据库错误

0x03 Debug

按照提示打开E:\phpstudy_pro\WWW\xvwa-master-test\config.php(目录下的config.php文件)
修改完记得保存
按照本图修改配置文件

返回浏览器刷新,即可进入XVWA的主页面

0x04 新的错误

打开主页面后发现所有的子页面都进不去
在这里插入图片描述

Not Found
The requested URL /xvwa/vulnerabilities/xpath/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

这时我们在文件夹中新建文件夹并改名为xvwa,并将所有的文件都复制过去就好了


本萌新的第一篇文章

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值