渗透测试环境搭建--Vulhub
1:
curl -s https://get.docker.com/ | sh
2:
apt install python3-pip
3:
pip3 install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
4:
pip3 install docker-compose -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
-i https://pypi.tuna.tsinghua.edu.cn/simple(使用清华镜像)
5:
wget https://github.com/vulhub/vulhub/archive/master.zip -O vulhub-master.zip
6:
unzip vulhub-master.zip
7:
cd vulhub-master/weblogic/CVE-2018-2628
8:
vim /etc/docker/daemon.json
{
";registry-mirrors";:[";https:/ǜkx4zyno.mirror.aliyuncs.com";]
}
9.重启docker
systemctl daemon-reload
systemctl restart docker
10.
docker-compose build
docker-compose up -d