Hi, how do I check which version of NetCat is installed with OS X and how do I update it if it is not a recent release?
MacUser2525:~$ netcat
-bash: netcat: command not found
MacUser2525:~$ locate netcat
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/gnetcat
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/gnetcat/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/netcat
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/netcat/Portfile
The command for netcat is nc, not netcat. It should be in /usr/bin/.
There are many clones of netcat around; you can probably find some via homebrew or macports, or build them yourself from sources.
MacUser2525:~$ nc --version
nc: illegal option -- -
usage: nc [-46AcCDdFhklMnOortUuvz] [-K tc] [-b boundif] [-i interval] [-p source_port]
[-s source_ip_address] [-w timeout] [-X proxy_version]
[-x proxy_address[:port]] [hostname] [port[s]]
Don't want to tell you its version for some reason.
What does a "man nc" do? (On the iPad right now, but that's what I would do, generally the man pages are pretty okay)
Thans for all replies and sorry for the delayed response as I've been having some issues with my computer. I will try the homebrew method. Btw, once its installed through home-brew, which installation comes up when you type "which nc" in terminal?
MacUser2525:~$ which rsync
/opt/local/bin/rsync
Thans for all replies and sorry for the delayed response as I've been having some issues with my computer. I will try the homebrew method. Btw, once its installed through home-brew, which installation comes up when you type "which nc" in terminal?
$ which nc
/usr/bin/nc
$ which netcat
/usr/local/bin/netcat
$ netcat --version
netcat (The GNU Netcat) 0.7.1