Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read MESSAGE
- echo "PID: $$"
- echo "$MESSAGE"
- socat -u tcp-l:7777,fork system:./getmsg.sh
- echo "message 1" | netcat localhost 7777
- TCPREMOTEIP
- tcpserver
- s6-tcpserver4
- s6-tcpserver-access
- s6-tcpserver-access
- ucspi-socket-rules-check
- ucspi-socket-rules-check
- ucspi-socket-rules-check
- tcpsvd
- service
- # simple UDP "echo" on port 9998
- udpsvd 0.0.0.0 9998 cat
- while true; do nc -ul 9998 | myscript.sh; done
- # this will keep listening instead of terminating the process:
- nc -kul 9998 |myscript.sh
Add Comment
Please, Sign In to add comment