Guest User

Untitled

a guest
Sep 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!/bin/bash
  2. read MESSAGE
  3. echo "PID: $$"
  4. echo "$MESSAGE"
  5.  
  6. socat -u tcp-l:7777,fork system:./getmsg.sh
  7.  
  8. echo "message 1" | netcat localhost 7777
  9.  
  10. TCPREMOTEIP
  11.  
  12. tcpserver
  13.  
  14. s6-tcpserver4
  15.  
  16. s6-tcpserver-access
  17.  
  18. s6-tcpserver-access
  19.  
  20. ucspi-socket-rules-check
  21.  
  22. ucspi-socket-rules-check
  23.  
  24. ucspi-socket-rules-check
  25.  
  26. tcpsvd
  27.  
  28. service
  29.  
  30. # simple UDP "echo" on port 9998
  31. udpsvd 0.0.0.0 9998 cat
  32.  
  33. while true; do nc -ul 9998 | myscript.sh; done
  34.  
  35. # this will keep listening instead of terminating the process:
  36. nc -kul 9998 |myscript.sh
Add Comment
Please, Sign In to add comment