42

What (if any) are the significant differences between netcat-traditional and netcat-openbsd?

I'm having trouble finding any relative information. Anybody familiar that can offer some insight?

1

2 Answers 2

40

You can look at the packages' descriptions using apt-cache show. They say it all:

$ 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.
...

So the significant differences are as stated. The OpenBSD rewrite supports IPv6, proxies, and Unix sockets, which the traditional implementation lacks. In practice, if you don't need any of these, you won't notice a difference.

0
15

netcat-traditional includes -e option to execute program from remote shell, which is not present in netcat-openbsd

1
  • 3
    Also, apparently, traditional lacks several options such as the -z option which specifies that nc should just scan for listening daemons, without sending any data to them. Oct 19, 2020 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.