Skip to content

Instantly share code, notes, and snippets.

@darkman66
Created November 21, 2019 13:16
Show Gist options
  • Save darkman66/2d5be57f3fc5abbe2a990331a1e9bc46 to your computer and use it in GitHub Desktop.
Save darkman66/2d5be57f3fc5abbe2a990331a1e9bc46 to your computer and use it in GitHub Desktop.
simple web server with netcat
while true ; do /usr/local/bin/nc -l -p 5000 -e 'echo -e "HTTP/1.1 200 OK\n\n $(cat /var/tmp/example.txt)"' ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment