Skip to content

Commit fb21c8d

Browse files
author
Sajjad Arshad
committed
challs
1 parent 7c215d8 commit fb21c8d

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:16.04
2+
MAINTAINER c2w2m2
3+
4+
RUN apt update
5+
RUN apt install -y xinetd
6+
ENV TERM=linux
7+
8+
RUN useradd ctf
9+
10+
CMD ["/usr/sbin/xinetd","-dontfork"]
11+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3'
2+
3+
services:
4+
chall:
5+
build: .
6+
ports:
7+
- "5333:5333"
8+
volumes:
9+
- ./share:/home/ctf/
10+
- ./xinetd:/etc/xinetd.d/ctf
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Defenit{EXAMPLE_FLAG}
14.2 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
cd /home/ctf
3+
timeout 10 ./main
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
service ctf
2+
{
3+
disable = no
4+
type = UNLISTED
5+
wait = no
6+
server = /home/ctf/run.sh
7+
socket_type = stream
8+
protocol = tcp
9+
user = ctf
10+
port = 5333
11+
flags = REUSE
12+
}
13+

0 commit comments

Comments
 (0)