Skip to content

Instantly share code, notes, and snippets.

@calaveraInfo
Last active June 1, 2023 13:14
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
Copy link

Nice! Why does this need ncat instead of nc?

@saandeepd
Copy link

ncat & nc both are same.

@Isanderthul
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