-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (138 loc) · 2.88 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3'
services:
# vulnerable webapp
wordpress:
image: wordpress:5.9.2-apache
depends_on:
- mysql
ports:
- 80:80
networks:
- attack
environment:
WORDPRESS_DB_HOST: 'mysql'
WORDPRESS_DB_USER: 'attack'
WORDPRESS_DB_PASSWORD: 'attack'
WORDPRESS_DB_NAME: 'attack'
WORDPRESS_CONFIG_EXTRA: |
define('WP_SITEURL', 'http://' . $$_SERVER['SERVER_NAME']);
define('WP_HOME', 'http://' . $$_SERVER['SERVER_NAME']);
# vulnerable services
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.0.2
depends_on:
- mysql
ports:
- 8081:80
environment:
PMA_HOST: 'mysql'
PMA_USER: 'attack'
PMA_PASSWORD: 'attack'
networks:
- attack
mysql:
image: 'mysql/mysql-server:8.0'
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: 'attack'
MYSQL_USER: 'attack'
MYSQL_PASSWORD: 'attack'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'mysql:/var/lib/mysql'
networks:
- attack
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-pattack" ]
retries: 3
timeout: 5s
nuclei:
image: projectdiscovery/nuclei
volumes:
- ./nuclei-configs:/root/.nuclei
- ./nuclei-templates:/root/nuclei-templates
- ./nuclei-reports:/root/reports
profiles:
- donotstart
networks:
- attack
entrypoint:
[
"nuclei",
"-concurrency",
"120",
"-retries",
"0",
"-t",
"http/cves",
"-t",
"http/vulnerabilities",
"-t",
"http/misconfiguration",
"-t",
"http/exposed-panels",
"-t",
"ssl",
"-ni",
"-stats",
"-si",
"1",
"-o",
"/root/reports/nuclei-report.txt",
"--target"
]
zap:
image: owasp/zap2docker-stable
profiles:
- donotstart
user: root
volumes:
- ./zap-work:/zap/wrk
networks:
- attack
entrypoint: [ "zap-baseline.py", "-w", "reports.html", "-t" ]
wpscan:
image: wpscanteam/wpscan
user: root
profiles:
- donotstart
volumes:
- ./wpscan-reports:/wpscan/reports
networks:
- attack
entrypoint:
[
"wpscan",
"--no-banner",
"--format",
"cli-no-color",
"--output",
"/wpscan/reports/wpscan-report.html",
"--url"
]
sqlmap:
image: googlesky/sqlmap
user: root
profiles:
- donotstart
networks:
- attack
volumes:
- ./sqlmap-reports:/sqlmap/reports
entrypoint: [
"python",
"sqlmap-dev/sqlmap.py",
"--batch",
"--output-dir=/sqlmap/reports",
"--forms",
"-u"
]
networks:
attack:
driver: bridge
volumes:
mysql:
driver: local