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

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

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM