Skip to content

Instantly share code, notes, and snippets.

Created Aug 7, 2018
What would you like to do?
netcat http server
while [ 1 ]; do
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(wc -c <index.html)\r\n\r\n"; cat index.html; } | nc -l 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment