Add README.md, {nc,telnet,pwn}-tasks

This commit is contained in:
2026-09-17 10:04:19 +03:00
parent 8ee59bdd9b
commit cd3441300c
18 changed files with 211 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM alpine:3.20
RUN apk add --no-cache busybox-extras su-exec
RUN adduser -D -h /home/ctf ctf
WORKDIR /app
COPY . .
RUN chmod +x docker-entrypoint.sh shell.sh
EXPOSE 23
ENTRYPOINT ["./docker-entrypoint.sh"]
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
echo "${FLAG}" > /flag.txt
chmod 644 /flag.txt
unset FLAG
exec telnetd -F -l /app/shell.sh
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
echo "Welcome! The flag is somewhere in the filesystem."
cd /home/ctf || exit 1
export HOME=/home/ctf
exec su-exec ctf /bin/ash