I know this is a simple question, but how do I switch to netcat-traditional
in ubuntu? Whenever I write netcat -h
it appears that I am running netcat-openbsd
instead? I'm new to Ubuntu so exact commands would be helpful. Thanks
Though netcat comes pre-installed in most Linux distributions but if its not, it can be installed easily using the following commands. Netcat for Windows can be downloaded from here https://sourceforge.net/projects/nc110/files/.
To install netcat from default Ubuntu repo, you need to use apt-get install netcat command as shown below. This will install the netcat utility along with all its required dependencies.
You can choose to install Netcat with the 'apt-get install' command or compile and install it from the source. The second method is not as easy as the first one and requires some basic knowledge about the Linux command line, commands such as tar, make, and install.
DESCRIPTION. Ncat is a feature-packed networking utility which reads and writes data across networks from the command line. Ncat was written for the Nmap Project and is the culmination of the currently splintered family of Netcat incarnations.
enable universe repository (if not enabled)
sudo add-apt-repository universe
Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)
sudo apt-get install netcat-traditional
type sudo update-alternatives --config nc
Select the option /bin/nc.traditional
type nc -h
output:
[v1.10-38] connect to somewhere: nc [-options] hostname port[s] [ports] ... listen for inbound: nc -l -p port [-options] [hostname] [port] options: -c shell commands as `-e'; use /bin/sh to exec [dangerous!!] -e filename program to exec after connect [dangerous!!] ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With