Created
October 13, 2012 11:04
-
-
Save jestan/3884165 to your computer and use it in GitHub Desktop.
Simple Dead 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
#!/bin/bash | |
while true; | |
do { | |
echo -e "HTTP/1.1 200 OK\r\n"; cat www-doc/index.html; | |
} | nc -l 8080; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment