Created
February 27, 2017 18:44
-
-
Save rhemz/1014bfb603469aa24a3a246c39069b3e to your computer and use it in GitHub Desktop.
netcat dummy http server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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