NetCat ncat or nc

Note : ncat is a utility of nmap that has implemented the netcat utility into it

https://nmap.org/ncat/

Uninstall NetCat (Remove preinstall netcat since it does not have -e option)

sudo apt-get remove --purge netcat-openbsd

Install ncat

sudo apt-get install nmap

Test the nmap and ncat using -v

Check Port Opening using ncat

nc -zv <ip> <port>

z : sets nc to simply scan for listening daemons, without actually sending any data to them.
v : enables verbose mode.

Open a port for listening


Execute a command on remote


Connect to machine via shell


Port Scanning

Create a chat or a web server

Verbose Scan with ncat command

Read Me :

https://www.linuxtechi.com/nc-ncat-command-examples-linux-systems/
https://www.varonis.com/blog/netcat-commands/

Leave a Comment