Tuesday, December 1, 2015

Linux and Unix Port Scanning With netcat [nc] Command

http://www.cyberciti.biz/faq/linux-port-scanning

How do I find out which ports are opened on my own server? How do I run port scanning using the nc command instead of the nmap command on a Linux or Unix-like systems?
The nmap (“Network Mapper”) is an open source tool for network
exploration and security auditing. If nmap is not installed and you do
not wish to use all of nmap options you can use netcat/nc command for
scanning ports. This may useful to know which ports are open and running
services on a target machine. You can use nmap command for port scanning too.

How do I use nc to scan Linux, UNIX and Windows server port scanning?

If nmap is not installed try nc / netcat command as follow. The -z
flag can be used to tell nc to report open ports, rather than initiate a
connection. Run nc command with -z flag. You need to specify host name
/ ip along with the port range to limit and speedup operation: