forked from JonGood/vulhub-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
128 lines (118 loc) · 3.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: '2.2'
services:
# https://github.com/vulhub/vulhub/tree/master/bash/shellshock
shellshock:
image: vulhub/bash:4.3.0-with-httpd
container_name: shellshock
ports:
- "80"
volumes:
- ./bash/shellshock/safe.cgi:/var/www/html/safe.cgi
- ./bash/shellshock/victim.cgi:/var/www/html/victim.cgi
hostname: shellshock
networks:
vulhubnet:
ipv4_address: 10.1.1.5
# https://github.com/vulhub/vulhub/tree/master/jenkins/CVE-2018-1000861
jenkins:
image: vulhub/jenkins:2.138
container_name: jenkins
init: true
ports:
- "50000"
- "8080"
hostname: jenkins
networks:
vulhubnet:
ipv4_address: 10.1.1.6
# https://github.com/vulhub/vulhub/tree/master/phpmyadmin/CVE-2018-12613
phpmyadmin:
image: vulhub/phpmyadmin:4.8.1
container_name: phpmyadmin
volumes:
- ./phpmyadmin/CVE-2018-12613/config.inc.php:/var/www/html/config.inc.php
ports:
- "80"
depends_on:
- mysql
hostname: phpmyadmin
networks:
vulhubnet:
ipv4_address: 10.1.1.7
mysql:
image: mysql:5.5
container_name: mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=test
- MYSQL_USER=test
- MYSQL_PASSWORD=test
hostname: mysql
networks:
vulhubnet:
ipv4_address: 10.1.1.8
telnetserver:
build: ./telnetserver
container_name: telnetserver
tty: true
ports:
- "23"
hostname: telnetserver
networks:
vulhubnet:
ipv4_address: 10.1.1.9
# https://github.com/vulhub/vulhub/tree/master/log4j/CVE-2021-44228
solr-log4j:
image: vulhub/solr:8.11.0
container_name: solr-log4j
ports:
- "8983"
hostname: solr-log4j
networks:
vulhubnet:
ipv4_address: 10.1.1.11
# https://github.com/vulhub/vulhub/tree/master/tomcat/tomcat8
tomcat:
image: vulhub/tomcat:8.0
container_name: tomcat
volumes:
- ./tomcat/tomcat8/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml
- ./tomcat/tomcat8/context.xml:/usr/local/tomcat/webapps/manager/META-INF/context.xml
- ./tomcat/tomcat8/context.xml:/usr/local/tomcat/webapps/host-manager/META-INF/context.xml
ports:
- "8080:8080"
hostname: tomcat
networks:
vulhubnet:
ipv4_address: 10.1.1.12
kali:
build: ./kali
# Note: If you don't want to build everything, use the image then apt install what you want/need
# Also note: Building everything, even kali-linux-headless, takes a really long time to build
#image: kalilinux/kali-rolling
container_name: kali
hostname: kali
tty: true
networks:
vulhubnet:
ipv4_address: 10.1.1.10
networks:
vulhubnet:
driver: bridge
ipam:
config:
- subnet: 10.1.1.0/24
gateway: 10.1.1.1
# docker network create --subnet=10.1.1.0/24 vulhubnet
#
# Add these entries to your /etc/hosts file:
#
# Vulhub lab
#10.1.1.5 shellshock
#10.1.1.6 jenkins
#10.1.1.7 phpmyadmin
#10.1.1.8 mysql
#10.1.1.9 telnetserver
#10.1.1.10 kali
#10.1.1.11 solr-log4j
#10.1.1.12 tomcat