netcat-traditional和netcat-openbsd之间有什么区别?

有什么明显的区别(如果有的话)在`netcat-traditional`和`netcat-openbsd`之间?
我找不到任何相关信息,有熟悉的人能提供一些见解吗?

http://superuser.com/questions/324812/versions-of-netcat - Ciro Santilli OurBigBook.com
2个回答

你可以使用apt-cache show来查看软件包的描述。它们会详细说明一切。
$ apt-cache show netcat-traditional 
...
 This is the "classic" netcat, written by *Hobbit*. It lacks many
 features found in netcat-openbsd.
...
$ apt-cache show netcat-openbsd 
...
 This package contains the OpenBSD rewrite of netcat, including support
 for IPv6, proxies, and Unix sockets.
...

所以重要的差异如下所述。OpenBSD的重写版本支持IPv6、代理和Unix套接字,而传统实现则不具备这些功能。实际上,如果您不需要其中任何一个功能,您将不会注意到任何差异。

netcat-traditional包括"-e"选项,可从远程shell执行程序,而netcat-openbsd中则没有此选项。

3此外,显然传统版本缺少一些选项,比如-z选项,它指定了nc只需扫描监听的守护进程,而无需向其发送任何数据。 - Stack Underflow