Skip to content

Instantly share code, notes, and snippets.

@jestan
Created October 13, 2012 11:04
Show Gist options
  • Save jestan/3884165 to your computer and use it in GitHub Desktop.
Save jestan/3884165 to your computer and use it in GitHub Desktop.
Simple Dead HTTP Server!!!
#!/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