Skip to content

Instantly share code, notes, and snippets.

Embed
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 127.0.0.1 4567 > reply # listens on port 8765 and redirects to localhost:4567. Runs until C-c.
rm reply # cleanup after end
@einarpersson

This comment has been minimized.

Copy link

@einarpersson einarpersson commented Mar 13, 2021

Nice! Why does this need ncat instead of nc?

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