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
+19
View File
@@ -0,0 +1,19 @@
services:
service:
build: service
restart: always
expose:
- 1337
networks:
- net
environment:
- FLAG=${FLAG}
labels:
- owl.proxy=true
- owl.proxy.port=1337
- owl.label.conntype=nc
networks:
net:
external:
name: ctfd_frp_containers
+10
View File
@@ -0,0 +1,10 @@
FROM alpine:3.20
RUN apk add --no-cache bash socat
WORKDIR /app
COPY handler.sh .
RUN chmod +x handler.sh
EXPOSE 1337
CMD ["socat", "-T", "30", "TCP-LISTEN:1337,reuseaddr,fork", "EXEC:./handler.sh"]
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
echo "Send 'flag' to solve this!"
read -r line
line="${line%$'\r'}"
if [ "$line" = "flag" ]; then
echo "$FLAG"
else
echo "Wrong input!"
fi