Simple Netcat tool written in Go. Fork of gonc with added userland wireguard support.
Install:
go get -u github.com/dnachev/wg-nc
Usage of wg-nc:
-host string
Remote host to connect, i.e. 127.0.0.1
-listen
Listen mode
-port string
Port to listen on or connect to (prepended by colon), i.e. :9999 (default ":9999")
-proto string
TCP/UDP mode (default "tcp")
-proxy-port string
Port to listen for connections to proxy, i.e :9999.
-wg string
Wireguard config file
Comments:
Send ~. to disconnect in UDP mode.
Proxy mode (when -proxy-port is provided) ignores process stdout and stdin and instead setups a persistent server, which forwards
requests to the provided host + port.