package
0.1.1
Repository: https://github.com/redteampentesting/resocks.git
Documentation: pkg.go.dev

# Functions

RunProxy starts a SOCKS server on socks5listenAddr that tunnels all incoming connections through relayConn.
RunProxyWithEventCallback is like RunProxy but it allows to specify a custom event callback instead of DefaultEventCallback.
RunRelay is the counterpart of RunProxy and acts as an exit node for the proxy connections tunneled through the provided connection.
RunRelayWithEventCallback is like RunRelay but it allows to specify a custom event callback instead of DefaultEventCallback.

# Constants

TypeError signifies an error event with the error message stored in the Data attribute.
TypeRelayConnected is generated when RunProxy is started.
TypeRelayDisconnected is generated when the relay connection is closed.
TypeSOCKS5Active is generated when the SOCKS5 server is started.
TypeSOCKS5ConnectionClosed is generate whenever a connection through the SOCKS5 server is closed.
TypeSOCKS5ConnectionOpened is generate whenever a new connection is opened through the SOCKS5 server.
TypeSOCKS5Inactive is generated when the SOCKS5 server is stopped.

# Variables

DefaultEventCallback prints all events to stdout except for error events, which are printed to stderr.

# Structs

Event holds the events that are generated by RunProxy and RunRelay.