Created
November 21, 2019 13:16
-
-
Save darkman66/2d5be57f3fc5abbe2a990331a1e9bc46 to your computer and use it in GitHub Desktop.
simple web server with netcat
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 /usr/local/bin/nc -l -p 5000 -e 'echo -e "HTTP/1.1 200 OK\n\n $(cat /var/tmp/example.txt)"' ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment