Kali环境下安装docker
apt-get install docker.io
service docker status
Kali在docker环境下搭建vulnhub靶场
- 下载、解压
wget https://github.com/vulhub/vulhub/archive/master.zip
unzip ~
- 复现Hadoop 未授权访问漏洞
- 配置环境
cd /vulhub/hadoop/unauthorized-yarn
docker-compose up -d
访问http://your-ip:8088
即可看到Hadoop YARN ResourceManager WebUI页面
kali docker apache
docker pull httpd
docker run -itd
–name test_web_server
-p 8085:80
-v /home/user/website/:/usr/local/apache2/htdocs/
httpd:latest
docker ps
cd /home/user/website
vi helloworld.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>hello world web page</title>
</head>
<body>
<h1>Hello from He!</h1>
</body>
</html>
然后保存,访问 http://<YOUR_IP>:8085/helloworld.html