Skip to content

Instantly share code, notes, and snippets.

@FredySandoval
Last active July 31, 2022 23:26
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 FredySandoval/ff34e87f83e4c4dc4a771df44fc7e31c to your computer and use it in GitHub Desktop.
Save FredySandoval/ff34e87f83e4c4dc4a771df44fc7e31c to your computer and use it in GitHub Desktop.
tunnel ncat to ngrok

tunnel ncat to ngrok

This will output wherever the server receives continuously

echo "Hello World" > index.html
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html; } | ncat -lvp 8080; done
./ngrok http 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment