-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
726 lines (641 loc) · 14.5 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
version: '3.8'
services:
##### web challenge start #####
##### port start : 41xxx
MD5_01:
image: php:7.2-apache
container_name: md5_01
restart: always
volumes:
- ./src/MD5_01/html:/var/www/html:ro
ports:
- "41001:80"
MD5_02:
image: php:7.2-apache
container_name: md5_02
restart: always
volumes:
- ./src/MD5_02/html:/var/www/html:ro
ports:
- "41002:80"
depends_on:
- MD5_01
Info_Leakage_01:
image: php:7.2-apache
container_name: info_leakage_01
restart: always
volumes:
- ./src/Info_Leakage_01/html:/var/www/html:ro
ports:
- "41003:80"
depends_on:
- MD5_02
Info_Leakage_02:
image: php:7.2-apache
container_name: info_leakage_02
restart: always
volumes:
- ./src/Info_Leakage_02/html:/var/www/html:ro
ports:
- "41004:80"
depends_on:
- Info_Leakage_01
Info_Leakage_03:
image: php:7.2-apache
container_name: info_leakage_03
restart: always
volumes:
- ./src/Info_Leakage_03/html:/var/www/html:ro
- ./src/Info_Leakage_03/000-default.conf:/etc/apache2/sites-enabled/000-default.conf:ro
ports:
- "41005:80"
depends_on:
- Info_Leakage_02
Info_Leakage_04:
image: php:7.2-apache
container_name: info_leakage_04
restart: always
volumes:
- ./src/Info_Leakage_04/html:/var/www/html:ro
ports:
- "41006:80"
depends_on:
- Info_Leakage_03
HTTP_01:
image: php:7.2-apache
container_name: http_01
restart: always
volumes:
- ./src/HTTP_01/html:/var/www/html:ro
ports:
- "41007:80"
depends_on:
- Info_Leakage_04
HTTP_02:
image: php:7.2-apache
container_name: http_02
restart: always
volumes:
- ./src/HTTP_02/html:/var/www/html:ro
ports:
- "41008:80"
depends_on:
- HTTP_01
PHP_Deserialization_01:
image: php:7.2-apache
container_name: php_deserialization_01
restart: always
volumes:
- ./src/PHP_Deserialization_01/html:/var/www/html:ro
ports:
- "41009:80"
depends_on:
- HTTP_02
PHP_Deserialization_02:
image: php:7.2-apache
container_name: php_deserialization_02
restart: always
volumes:
- ./src/PHP_Deserialization_02/html:/var/www/html:ro
ports:
- "41010:80"
depends_on:
- PHP_Deserialization_01
PHP_Deserialization_03:
image: php:7.2-apache
container_name: php_deserialization_03
restart: always
volumes:
- ./src/PHP_Deserialization_03/html:/var/www/html:ro
ports:
- "41011:80"
depends_on:
- PHP_Deserialization_02
PHP_Deserialization_04:
image: php:7.2-apache
container_name: php_deserialization_04
restart: always
volumes:
- ./src/PHP_Deserialization_04/html:/var/www/html:ro
ports:
- "41012:80"
depends_on:
- PHP_Deserialization_03
PHP_Deserialization_05:
image: php:7.2-apache
container_name: php_deserialization_05
restart: always
volumes:
- ./src/PHP_Deserialization_05/html:/var/www/html:ro
ports:
- "41013:80"
depends_on:
- PHP_Deserialization_04
Phar_Deserialization_01:
image: php:7.2-apache
container_name: phar_deserialization_01
restart: always
volumes:
- ./src/Phar_Deserialization_01/html:/var/www/html:ro
- ./src/Phar_Deserialization_01/flag_14d30d11e44a1912e23f04e98649142a.txt:/flag_14d30d11e44a1912e23f04e98649142a.txt:ro
ports:
- '41014:80'
depends_on:
- PHP_Deserialization_05
Phar_Deserialization_02:
image: php:7.2-apache
container_name: phar_deserialization_02
restart: always
volumes:
- ./src/Phar_Deserialization_02/html:/var/www/html:ro
- ./src/Phar_Deserialization_02/flag_54d4039fd6f30de10f080a206027d71f.txt:/flag_54d4039fd6f30de10f080a206027d71f.txt:ro
ports:
- '41015:80'
depends_on:
- Phar_Deserialization_01
Emoji_01:
image: php:7.2-apache
container_name: emoji_01
restart: always
volumes:
- ./src/Emoji_01/html:/var/www/html:ro
ports:
- "41016:80"
depends_on:
- Phar_Deserialization_02
Emoji_02:
image: php:7.2-apache
container_name: emoji_02
restart: always
volumes:
- ./src/Emoji_02/html:/var/www/html:ro
ports:
- "41017:80"
depends_on:
- Emoji_01
XXE_01:
image: php:7.2-apache
container_name: xxe_01
restart: always
volumes:
- ./src/XXE_01/html:/var/www/html:ro
- ./src/XXE_01/flag.txt:/flag.txt:ro
ports:
- "41018:80"
depends_on:
- Emoji_02
XXE_02:
image: php:7.2-apache
container_name: xxe_02
restart: always
volumes:
- ./src/XXE_02/html:/var/www/html:ro
- ./src/XXE_02/flag.txt:/flag.txt:ro
ports:
- "41019:80"
depends_on:
- XXE_01
XXE_03:
image: php:7.2-apache
container_name: xxe_03
restart: always
volumes:
- ./src/XXE_03/html:/var/www/html:ro
- ./src/XXE_03/flag.txt:/flag.txt:ro
ports:
- "41020:80"
depends_on:
- XXE_02
XXE_04:
image: php:7.2-apache
container_name: xxe_04
restart: always
volumes:
- ./src/XXE_04/html:/var/www/html:ro
- ./src/XXE_04/setup.sh:/root/setup.sh:ro
command: ["sh", "/root/setup.sh"]
ports:
- "41021:80"
depends_on:
- XXE_03
XXE_05:
image: php:7.2-apache
container_name: xxe_05
restart: always
volumes:
- ./src/XXE_05/html:/var/www/html:ro
- ./src/XXE_05/flag.txt:/flag.txt:ro
ports:
- "41022:80"
depends_on:
- XXE_04
File_Upload_01:
build: src/File_Upload_01/.
image: file_upload_01
container_name: file_upload_01
restart: always
ports:
- "41023:80"
depends_on:
- XXE_05
File_Upload_02:
build: src/File_Upload_02/.
image: file_upload_02
container_name: file_upload_02
restart: always
ports:
- "41024:80"
depends_on:
- File_Upload_01
File_Upload_03:
build: src/File_Upload_03/.
image: file_upload_03
container_name: file_upload_03
restart: always
ports:
- "41025:80"
depends_on:
- File_Upload_02
File_Upload_04:
build: src/File_Upload_04/.
image: file_upload_04
container_name: file_upload_04
restart: always
ports:
- "41026:80"
depends_on:
- File_Upload_03
File_Upload_05:
build: src/File_Upload_05/.
image: file_upload_05
container_name: file_upload_05
restart: always
ports:
- "41027:80"
depends_on:
- File_Upload_04
Command_01:
build: src/Command_01/.
image: command_01
container_name: command_01
restart: always
dns: 8.8.8.8
ports:
- "41028:80"
depends_on:
- File_Upload_05
Command_02:
build: src/Command_02/.
image: command_02
container_name: command_02
restart: always
dns: 8.8.8.8
ports:
- "41029:80"
depends_on:
- Command_01
Command_03:
build: src/Command_03/.
image: command_03
container_name: command_03
restart: always
dns: 8.8.8.8
ports:
- "41030:80"
depends_on:
- Command_02
Command_04:
build: src/Command_04/.
image: command_04
container_name: command_04
restart: always
dns: 8.8.8.8
ports:
- "41031:80"
depends_on:
- Command_03
Command_05:
build: src/Command_05/.
image: command_05
container_name: command_05
restart: always
dns: 8.8.8.8
ports:
- "41032:80"
depends_on:
- Command_04
SSRF_00:
build: src/SSRF_00/.
image: ssrf_00
container_name: ssrf_00
restart: always
ports:
- "41033:80"
depends_on:
- Command_05
SSRF_01:
build: src/SSRF_01/.
image: ssrf_01
container_name: ssrf_01
restart: always
ports:
- "41034:80"
depends_on:
- SSRF_00
SSRF_02:
build: src/SSRF_02/.
image: ssrf_02
container_name: ssrf_02
restart: always
ports:
- "41035:80"
depends_on:
- SSRF_01
SSRF_03:
build: src/SSRF_03/.
image: ssrf_03
container_name: ssrf_03
restart: always
ports:
- "41036:80"
depends_on:
- SSRF_02
SSRF_04:
build: src/SSRF_04/.
image: ssrf_04
container_name: ssrf_04
restart: always
ports:
- "41037:80"
depends_on:
- SSRF_04_redis
SSRF_04_redis:
build:
context: src/SSRF_04/.
dockerfile: Dockerfile-redis
image: ssrf_04_redis
container_name: ssrf_04_redis
restart: always
depends_on:
- SSRF_03
SSRF_05:
build: src/SSRF_05/.
image: ssrf_05
container_name: ssrf_05
restart: always
ports:
- "41038:80"
depends_on:
- SSRF_05_MYSQL
SSRF_05_MYSQL:
image: mysql:5
container_name: ssrf_05_mysql
restart: always
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
volumes:
- "./src/SSRF_05/flag.sql:/docker-entrypoint-initdb.d/flag.sql:ro"
depends_on:
- SSRF_04
BabyFirst:
build: src/BabyFirst/.
image: babyfirst
container_name: babyfirst
restart: always
ports:
- "41039:80"
depends_on:
- SSRF_05
BabyFirst_Revenge:
build: src/BabyFirst_Revenge/.
image: babyfirst_revenge
container_name: babyfirst_revenge
restart: always
ports:
- "41040:80"
depends_on:
- BabyFirst
BabyFirst_Revenge_v2:
build: src/BabyFirst_Revenge_v2/.
image: babyfirst_revenge_v2
container_name: babyfirst_revenge_v2
restart: always
ports:
- "41041:80"
depends_on:
- BabyFirst_Revenge
pcre_waf:
build: src/pcre_waf/.
image: pcre_waf
container_name: pcre_waf
restart: always
ports:
- "41042:80"
depends_on:
- BabyFirst_Revenge_v2
Basic_XXE:
image: php:7.2-apache
container_name: basic_xxe
restart: always
volumes:
- ./src/Basic_XXE/html:/var/www/html:ro
ports:
- "41043:80"
depends_on:
- pcre_waf
Numeric:
image: php:7.2-apache
container_name: numeric
restart: always
volumes:
- ./src/Numeric/html:/var/www/html:ro
ports:
- "41044:80"
depends_on:
- Basic_XXE
FlagLab:
build: src/FlagLab/.
image: flaglab
container_name: flaglab
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.example.com'
redis['bind']='127.0.0.1'
redis['port']=6379
gitlab_rails['initial_root_password']=File.read('/steg0_initial_root_password')
ports:
- '41045:80'
volumes:
- './src/FlagLab/steg0_initial_root_password:/steg0_initial_root_password'
- './src/FlagLab/flag.txt:/flag:ro'
depends_on:
- SSRF_05
##### web chall end ######
####################################################################################################
##### pwn challenge start #####
##### port start : 42xxx
BoF_1:
build: src/bof_1/.
image: bof_1
container_name: bof_1
restart: always
ports:
- "42001:1337"
BoF_2:
build: src/bof_2/.
image: bof_2
container_name: bof_2
restart: always
ports:
- "42002:1337"
privileged: true
depends_on:
- BoF_1
Pwn_1:
build: src/pwn_1/.
image: pwn_1
container_name: pwn_1
restart: always
ports:
- "42003:1337"
privileged: true
depends_on:
- BoF_2
Pwn_2:
build: src/pwn_2/.
image: pwn_2
container_name: pwn_2
restart: always
ports:
- "42004:1337"
privileged: true
depends_on:
- Pwn_1
Pwn_3:
build: src/pwn_3/.
image: pwn_3
container_name: pwn_3
restart: always
ports:
- "42005:1337"
privileged: true
depends_on:
- Pwn_2
Pwn_4:
build: src/pwn_4/.
image: pwn_4
container_name: pwn_4
restart: always
ports:
- "42006:1337"
privileged: true
depends_on:
- Pwn_3
Pwn_5:
build: src/pwn_5/.
image: pwn_5
container_name: pwn_5
restart: always
ports:
- "42007:1337"
privileged: true
depends_on:
- Pwn_4
Pwn_6:
build: src/pwn_6/.
image: pwn_6
container_name: pwn_6
restart: always
ports:
- "42008:1337"
privileged: true
depends_on:
- Pwn_5
Pwn_7:
build: src/pwn_7/.
image: pwn_7
container_name: pwn_7
restart: always
ports:
- "42009:1337"
privileged: true
depends_on:
- Pwn_6
volumes:
- "./src/pwn_7/share:/home/ctf:ro"
- "./src/pwn_7/xinetd:/etc/xinetd.d/ctf:ro"
- "./src/pwn_7/xinetd.conf:/etc/xinetd.conf:ro"
Pwn_8:
build: src/pwn_8/.
image: pwn_8
container_name: pwn_8
restart: always
ports:
- "42010:1337"
privileged: true
depends_on:
- Pwn_7
volumes:
- "./src/pwn_8/share:/home/ctf:ro"
- "./src/pwn_8/xinetd:/etc/xinetd.d/ctf:ro"
- "./src/pwn_8/xinetd.conf:/etc/xinetd.conf:ro"
Pwn_9:
build: src/pwn_9/.
image: pwn_9
container_name: pwn_9
restart: always
ports:
- "42011:1337"
privileged: true
depends_on:
- Pwn_8
volumes:
- "./src/pwn_9/share:/home/ctf:ro"
- "./src/pwn_9/xinetd:/etc/xinetd.d/ctf:ro"
- "./src/pwn_9/xinetd.conf:/etc/xinetd.conf:ro"
sumarr:
build: src/sumarr/.
image: sumarr
container_name: sumarr
restart: always
ports:
- "42012:1337"
##### pwn chall end ######
####################################################################################################
##### crypto challenge start #####
##### port start : 43xxx
BabyAES:
build: src/BabyAES/.
image: babyaes
container_name: babyaes
restart: always
ports:
- "43001:1337"
depends_on:
- "SSRF_00"
##### crypto chall end ######
####################################################################################################
##### reverse challenge start #####
##### port start : 44xxx
keygenme_01:
build: src/keygenme_01/.
image: keygenme_01
container_name: keygenme_01
restart: always
ports:
- "44001:1337"
##### reverse chall end ######
####################################################################################################
##### misc challenge start #####
##### port start : 45xxx
ProFTPD_1.3.5:
build: src/ProFTPD_1.3.5/.
image: proftpd_1.3.5
container_name: proftpd_1.3.5
restart: always
ports:
- "45001:21"
- "45002:80"
##### misc chall end ######