Vulhub environment construction

Introduction to vulhub

Vulhub official website: https://vulhub.org/
Vulhub is a collection of vulnerability environments based on dockersum docker-compose. Enter the corresponding directory and execute a statement to start a brand-new vulnerability environment, making it easier to reproduce vulnerabilities and allowing security researchers Focus more on the vulnerability principle itself.

Ubuntu (ubuntu)

1. Install Docker

sudo apt install docker.io
$ sudo docker run hello-world   #测试是否安装成功

2. Install Docker-compose

sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
$ docker-compose --version   #测试是否安装成功

3. Install Vulhub

git clone https://github.com/vulhub/vulhub.git

Or
https://github.com/vulhub/vulhub/archive/master.zip

4. Turn on/off the environment

cd 到漏洞文件夹下
docker-compose up -d
docker-compose down

Guess you like

Origin blog.csdn.net/qq_25504829/article/details/115284904