Add README.md, {nc,telnet,pwn}-tasks
This commit is contained in:
@@ -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"]
|
||||
Executable
+12
@@ -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
|
||||
Reference in New Issue
Block a user