Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Last active August 29, 2015 14:01
Show Gist options
  • Save qpfiffer/815ca62490622324f405 to your computer and use it in GitHub Desktop.
Save qpfiffer/815ca62490622324f405 to your computer and use it in GitHub Desktop.
while true; do nc -l -p 8081 -q 1 < <(echo "<html><body><ul>"`cat /etc/nginx/sites-enabled/shithouse | grep server_name | awk '{print $2}' | sed 's/;//g' | sed 's/\(.*\)/<li><a href="http:\/\/\1">\1<\/a><\/li>/g'`"</ul></body></html>"); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment