vmware / photon

Minimal Linux container host
https://vmware.github.io/photon
Other
3.04k stars 698 forks source link

Missing -C (CRLF as EOL) option in Netcat #809

Open dzampino opened 6 years ago

dzampino commented 6 years ago

The version of Netcat included with Photon does not contain the -C option to use CRLF for EOL. This is a particularly helpful option while troubleshooting and many forks of Netcat, such as Debian's have added this functionality. Red Hat has opted to replace Netcat with Nmap's Ncat, which also has this option and is in active development. Either of these choices would expand the current troubleshooting options.

YustasSwamp commented 5 years ago

What netcat version and from what distribution are you referencing to? We might need to patch netcat in order to support it.

dzampino commented 5 years ago

Doing some more research, it appears that Debian (and derivatives) used the actively developed netcat-openbsd versus netcat-traditional (written by Hobbit). netcat-openbsd is a rewrite the includes support for IPv6, proxies, Unix sockets, and has the previously mentioned -C option. In Debian Jessie and Stretch, it is currently at version 1.10-41.