Skip to content

Commit a552261

Browse files
committed
add flag
1 parent f3b6868 commit a552261

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

ctf/blackbox/fdr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import json
55
import logging
66
import logging.handlers
7+
import time
8+
9+
time.sleep(60)
710

811
lstnr = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
912
lstnr.bind(("", 34568))

ctf/docker-compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ services:
88

99
blackbox:
1010
build: ./blackbox
11+
depends_on:
12+
- mcdu
1113
networks:
1214
canaero:
1315
ipv4_address: 172.20.4.2
@@ -20,6 +22,8 @@ services:
2022

2123
mcdu:
2224
build: ./mcdu
25+
depends_on:
26+
- cdls
2327
ports:
2428
- "127.0.0.1:9923:23"
2529
volumes:
@@ -30,6 +34,8 @@ services:
3034

3135
router:
3236
build: ./router
37+
depends_on:
38+
- mcdu
3339
ports:
3440
- "8823:23"
3541
networks:

ctf/mcdu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ RUN cd /cdls; make unlock
2020
COPY telnet.go shell.go
2121
RUN /usr/local/go/bin/go build -o /out/shell .
2222

23-
CMD /out/shell
23+
CMD /cdls/unlock 'CTF{TheFlagGoesHere}'; /out/shell

0 commit comments

Comments
 (0)