Created
July 7, 2020 03:08
-
-
Save openstacker/b959eda152d2f3844e50ab98d07814f2 to your computer and use it in GitHub Desktop.
simple webserver with nc
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
echo "HTTP/1.1 200 OK | |
Content-Type: text/html; charset=UTF-8 | |
Server: netcat! | |
<!doctype html> | |
<html><body><h1>`hostname`</h1></body></html>" > index.http && while true; do cat index.http | nc -l -p 80; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment