How to create extremely simple (http) reverse proxy using netcat (nmap flavor) and a named pipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
ncat & nc both are same.
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
Nice! Why does this need
ncat
instead ofnc
?