Skip to content

Manually controlled proxy for exploring/debugging TCP protocols

License

Notifications You must be signed in to change notification settings

Denloob/protocol-proxy

Repository files navigation

Protocol Proxy

Manually controlled proxy for exploring/debugging TCP protocols

Usage

Usage of protocol-proxy:
  -in-port int
        The in port on which to listen
  -out-ip string
        The out ip to which to output (default "127.0.0.1")
  -out-port int
        The out port to which to output

For example run

./protocol-proxy -in-port 1337 -out-port 8080

With a server listening on the out-port (for example nc -l 8080).

Now connect to the in-port (for example nc localhost 1337).

Of course the server and the client can be any source, for example you could use iptables to route any type of tcp traffic through the protocol proxy.

Image of the protocol proxy TUI intercepting a website connection

Additionally, you may configure the TUI to use NerdFont symbols instead of unicode.

To do this change the line in main.go from

symbols.CurrentMap = symbols.DefaultMap

to

symbols.CurrentMap = symbols.NerdFontMap

It's one of the last lines in the file.

Building and running

Clone the project, go build, and run the protocol-proxy executable

Contributing

Any help is appreciated!

Contribute by creating an Issue/a Pull Request

About

Manually controlled proxy for exploring/debugging TCP protocols

Topics

Resources

License

Stars

Watchers

Forks

Languages