我的操作系统是Windows10 x64
socat2从哪里来的?
C:\cygwin64\bin\socat.exe
C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -
Administrator@lvB ~
$ socat -V
socat by Gerhard Rieger and contributors - see www.dest-unreach.org
socat version 2.0.0-b90+ on Sep 18 2020 13:14:12
running on CYGWIN_NT-10.0-19044 version 2022-01-31 19:35 UTC, release 3.3.4-341.x86_64, machine x86_64
features:
#define WITH_STDIO 1
#define WITH_FDNUM 1
#define WITH_FILE 1
#define WITH_CREAT 1
#define WITH_GOPEN 1
#define WITH_TERMIOS 1
#define WITH_PIPE 1
#define WITH_UNIX 1
#undef WITH_ABSTRACT_UNIXSOCKET
#define WITH_IP4 1
#define WITH_IP6 1
#define WITH_RAWIP 1
#define WITH_GENERICSOCKET 1
#undef WITH_INTERFACE
#define WITH_TCP 1
#define WITH_UDP 1
#undef WITH_SCTP
#define WITH_LISTEN 1
#define WITH_SOCKS4 1
#define WITH_SOCKS4A 1
#define WITH_PROXY 1
#define WITH_SYSTEM 1
#define WITH_EXEC 1
#define WITH_READLINE 1
#undef WITH_TUN
#define WITH_PTY 1
#define WITH_OPENSSL 1
#undef WITH_FIPS
#define WITH_LIBWRAP 1
#define WITH_SYCLS 1
#define WITH_FILAN 1
#define WITH_RETRY 1
#define WITH_MSGLEVEL 0 /*debug*/
Administrator@lvB ~
$
Administrator@lvB ~
$ which socat
/usr/bin/socat
Administrator@lvB ~
$ which nc
/usr/bin/nc
Administrator@lvB ~
$ socat -hhh |cat -n | grep socks
114 socks is an alias name for socks4
115 socks-client is an alias name for socks4
116 socks4:<host>:<port> rwb b groups=CHILD,RETRY,SOCKS4
117 socks4:<socks-server>:<host>:<port> rwb groups=FD,SOCKET,CHILD,RETRY,IP4,IP6,TCP,SOCKS4
118 socks4-client is an alias name for socks4
119 socks4a:<host>:<port> rwb b groups=CHILD,RETRY,SOCKS4
120 socks4a:<socks-server>:<host>:<port>rwb groups=FD,SOCKET,CHILD,RETRY,IP4,IP6,TCP,SOCKS4
121 socks4a-client is an alias name for socks4a
122 socks5:<host>:<port> rwb b groups=SOCKS5
123 socks5-client is an alias name for socks5
624 socks5-password groups=SOCKS5 phase=LATE type=STRING
625 socks5-username groups=SOCKS5 phase=LATE type=STRING
626 socksport groups=SOCKS4 phase=LATE type=STRING
627 socksuser groups=SOCKS4 phase=LATE type=STRING
Administrator@lvB ~
$