Vulhub-漏洞环境的搭建(详细版)

安装Vulhub需要的基础环境

更新现有的软件

sudo apt-get update
sudo apt-get upgrade

安装Docker

# 安装脚本
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

# 测试脚本
curl -fsSL https://test.docker.com -o test-docker.sh
sh test-docker.sh

  

'curl' not found 报错

Command 'curl' not found, but can be installed with:

apt install curl  # 安装curl插件

安装Docker-compose

apt install python-pip
pip install docker-compose  

获取Vulhub项目

下载Vulhub

# Download project
wget https://github.com/vulhub/vulhub/archive/master.zip -O vulhub-master.zip
unzip vulhub-master.zip
cd vulhub-master

因为是国外服务器可能会出现断连等问题,可以直接下载下来,复制到虚拟机里面

漏洞环境的使用

cd vulhub-master/aria2/rce  # 进入需要开启的漏洞路径
docker-compose up -d

访问不同环境对应的端口即可

  

原文地址:https://www.cnblogs.com/R-S-PY/p/12131838.html