Skip to content

Instantly share code, notes, and snippets.

@johnmaxwell
Last active January 12, 2016 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmaxwell/588aff396b5bba4c451f to your computer and use it in GitHub Desktop.
Save johnmaxwell/588aff396b5bba4c451f to your computer and use it in GitHub Desktop.
netcat 0.7.1 webserver that closes connections
while true ; do printf 'HTTP/1.1 200 OK\r\n\r\ncool, thanks' | netcat -l -c -p 8888 > incoming.txt ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment