Created
April 22, 2021 20:48
-
-
Save joshlarsen/a9bf72c39dcfddb7a495bfae63acd75b to your computer and use it in GitHub Desktop.
netcat web server one liner
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
while true; do echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l localhost 4000; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment