Skip to content

Instantly share code, notes, and snippets.

@pdxjohnny
Created May 11, 2020 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdxjohnny/2b5baafcc973cff6fd350e2857d46a0f to your computer and use it in GitHub Desktop.
Save pdxjohnny/2b5baafcc973cff6fd350e2857d46a0f to your computer and use it in GitHub Desktop.
Netcat tips and tricks

Display a file as plain text in a browser

$ (echo -e 'HTTP/1.0 200 OK\n' && cat myfile.txt) | nc -lp 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment