Setup binary lab with TCPServer for CTF
- Setup environment
apt-get install ucspi-tcp
- Create shell script (test.sh)
#!/bin/bash
## Receive input from network
read msg
echo "Hello "$msg
- Create socket for receive input with tcpserver
tcpserver -t 50 -RHl0 0.0.0.0 31337 ./test.sh
- Connect with netcat
echo "testing" | nc localhost 31337