Skip to content

Instantly share code, notes, and snippets.

Last active June 1, 2023 13:14
What would you like to do?
How to create extremely simple (http) reverse proxy using netcat (nmap flavor) and a named pipe
mkfifo reply
ncat -kl 8765 < reply | ncat 4567 > reply # listens on port 8765 and redirects to localhost:4567. Runs until C-c.
rm reply # cleanup after end
Copy link

Nice! Why does this need ncat instead of nc?

Copy link

ncat & nc both are same.

Copy link

ncat supports -k which keep the connection open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment