------------恢复内容开始------------
0x01:环境配置
Ubuntu 18.0
配置Ubuntu为阿里源:https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11nhvnz3,如果不配置下载会很慢
0x02:安装
#安装docker
apt install docker.io
#安装docker-compose
apt install docker-compose
#下载vulstudy代码
git clone https://github.com/c0ny1/vulstudy.git
下载成功后就是如图以下的靶机
#开启服务,以DWVA为例
进入DWVA目录
docker-compose up -d #开启容器,会根据Dockerfile里面的内容下载
docker-compose stop 停止容器
#查看是否成功
docker ps -a #查看开启的容器
通过web 80端口就可以成功访问 DWVA靶机了,虚拟机设置为桥接模式,局域网内的机器都可以访问