Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch to netcat-traditional in Ubuntu?

Tags:

ubuntu

netcat

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

like image 711
Nosrettap Avatar asked Apr 08 '12 19:04

Nosrettap


People also ask

Is netcat preinstalled Ubuntu?

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

Does Ubuntu have netcat?

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.

How do I get netcat on Linux?

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.

What is NCAT Ubuntu?

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.


1 Answers

  1. enable universe repository (if not enabled)

    sudo add-apt-repository universe 
  2. Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)

    sudo apt-get install netcat-traditional 
  3. type sudo update-alternatives --config nc

  4. Select the option /bin/nc.traditional

  5. 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!!] ... 
like image 124
totox Avatar answered Oct 02 '22 22:10

totox