started cyber apokalypse

This commit is contained in:
2024-03-10 12:14:06 +01:00
parent b0863bb70a
commit dd249ad907
6 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
FROM alpine:latest
RUN apk add --no-cache socat dash && ln -sf /usr/bin/dash /bin/sh
EXPOSE 1337
RUN addgroup -S ctf && adduser -S ctf -G ctf
COPY challenge/ /home/ctf/
WORKDIR /home/ctf
USER ctf
CMD ["socat", "tcp-l:1337,reuseaddr,fork", "EXEC:./sound_of_silence"]

View File

@@ -0,0 +1,3 @@
#!/bin/sh
docker build --tag=sound_of_silence .
docker run -it -p 1337:1337 --rm --name=sound_of_silence sound_of_silence

View File

@@ -0,0 +1 @@
HTB{f4k3_fl4g_4_t35t1ng}