Brief
The Swiss Army Knife of TCP/IP Connections
As the man page notes, the Netcat tool is known as the Swiss Army knife
for TCP/IP connections. It’s a versatile tool.
Usage
1 | root@kali:~#nc -h |
Check to see if a port is listening
1 | root@kali:~#nc -v [target ip address] [port] |
You can also use the following command:1
2root@kali:~#nc -lvp 1234
listening on [any] 1234....
You use the options l for listen, v for verbose,and p to spcify the port to listen on