Created
February 28, 2020 16:30
-
-
Save JCotton1123/198e524819aba46a5898bc17b7c47ecd to your computer and use it in GitHub Desktop.
Netcat HTTP Server
This file contains 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
cat >index.http <<EOF | |
HTTP/1.1 200 OK | |
Content-Type: text/html; charset=UTF-8 | |
Server: netcat! | |
<!doctype html> | |
<html><body><h1>A webpage served by netcat</h1></body></html> | |
EOF | |
while true; do cat index.http | nc -l 8000; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment