vulhub靶场

搭建靶场

  • kali下搭建vulhub靶场
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
apt-get update
apt-get install -y apt-transport-https ca-certificates
# 安装https,ca证书
apt install docker.io # 安装docker
docker -v
systemctl start docker
docker ps -a
apt-get install python3-pip # 安装pip
pip3 install docker-compose # 安装docker-compose
docker-compose -v
git clone https://github.com/vulhub/vulhub.git # 下载vulhub
cd spring/CVE-2018-1273 # 任意进入一个目录,启动靶场
docker-compose build # 对靶场进行编译
docker-compose up -d # 启动环境(查看端口,http://localhost:8080/users)
docker-compose down # 移除环境