Skip to content

Instantly share code, notes, and snippets.

@rhemz
Created February 27, 2017 18:44
Show Gist options
  • Save rhemz/1014bfb603469aa24a3a246c39069b3e to your computer and use it in GitHub Desktop.
Save rhemz/1014bfb603469aa24a3a246c39069b3e to your computer and use it in GitHub Desktop.
netcat dummy http server
# on target host:
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; echo -e 'test test test\r\n'; } | nc -l <port>; done
# if listening on port <= 1024, sudo nc
# then just curl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment