当前位置:网站首页>SQL注入漏洞学习之一:phpstudy集成环境搭建DVWA靶场
SQL注入漏洞学习之一:phpstudy集成环境搭建DVWA靶场
2022-06-11 18:21:00 【游戏编程】
本文讲述了在phpstudy集成环境下,采用WNMP架构搭建DVWA靶场的过程,以及常见问题的处理。
一、phpstudy安装
1.在phpstudy官网下载安装包,官网下载地址:https://www.xp.cn/download.html
2.解压缩后点击phpstudy_x64_8.1.1.3.exe安装,注意安装路径不能包含中文或空格

3.安装完成后打开面板,选择WNMP并启动

二、部署DVWA靶场
1.从网上下载DVWA安装包,官网下载地址:https://dvwa.co.uk/,滑到页面底端点击DOWNLOAD开始下载

2.下载完成后解压缩安装包,复制解压后的文件到phpstudy的安装目录下

3.创建网站,打开phpstudy面板,点击网站,点击创建网站,在基本配置里域名填写localhost,端口默认80,改为一个随机的非80端口,网站根目录改为DVWA-master存放路径,php版本可以选用一个兼容性更高的低版本,我这里选用了5.6.9版本。

4.配置完网站后返回面板首页重启服务,打开浏览器通过localhost:7777访问DVWA网页,这时会报一个错误,根据提示打开DVWA-master文件夹下的config文件夹,复制config.inc.php.dist为config.inc.php,并打开此文件,修改数据库相关内容,在面板的数据库页面可以查看自己的数据库名称和密码,修改后刷新进入安装页面



5.安装DVWA,打开php配置文件,将allow_url_include=Off改为allow_url_include=On


重启服务刷新页面

点击页面底端的创建数据库

创建成功

自动跳转至登录界面,账户admin密码password

登录后界面

至此DVWA靶场搭建完成。
作者:百里侠
游戏编程,一个游戏开发收藏夹~
如果图片长时间未显示,请使用Chrome内核浏览器。
边栏推荐
- v-for循环遍历
- 为何TI的GPMC并口,更常被用于连接FPGA、ADC?我给出3个理由
- 力扣刷题——二叉树的层序遍历
- 5分钟了解攻防演练中的红蓝紫
- Summary of common mysql/redis interview questions
- 论催收系统的管理子系统选型设计
- *Jetpack notes understanding of lifecycle ViewModel and livedata
- [c language] shift elements after sorting elements of an array
- Niuke brush questions part8
- Cool visualization tool: first introduction to processing
猜你喜欢

Sorted circular linked list

非递归实现二叉树的前、中、后序遍历

平衡搜索二叉树——AVL树

Force deduction 23 questions, merging K ascending linked lists

v-for循环遍历
Summary of common mysql/redis interview questions

力扣刷题——二叉树的最近公共祖先

On the sequence traversal of binary tree

Cool visualization tool: first introduction to processing

全国院校MBA、EMBA、MPA、MEM、提前面试(预面试)时间批次已出(持续更新中)-文都管联院
随机推荐
Quanzhi technology T3 development board (4-core arm cortex-a7) - video development case
Balanced search binary tree -- AVL tree
最长严格递增子序列
Async leads to unexpected function results and changes the intention of the original code; await is only valid in async functions and the top level bodies of modules
The nearest common ancestor of binary tree
力扣23题,合并K个升序链表
Use transformers to convert TF model to pytorch model
构造敌方坦克
Map and set
Ubuntu installs PSQL and runs related commands
使用Visdom对损失函数进行监控
Niuke brush questions part7
On the sequence traversal of binary tree Ⅱ
公共字段自动填充,你了解吗
Why is ti's GPMC parallel port more often used to connect FPGA and ADC? I give three reasons
[c language] output the average score and the student data below or equal to the average score with the structure
开发中必备的文件的上传与下载
SAP BTP 上 workflow 和 Business Service 的 project 管理
软件开发的整体流程
* Jetpack 笔记 Room 的使用