Netcat is an extremely useful, multipurpose networking utility that can be used for a plethora of purposes. One effective use of Netcat is to perform port scans:
- To identify the usage options, Netcat (nc) should be called with the -h option, as follows:
- As indicated by the usage output, the -z option can effectively be used for scanning. To scan the TCP port 80 on a target system, we use the -n option to indicate that an IP address will be used, the -v option for verbose output, and the -z option for scanning, as follows:
- Performing a scan attempt against an open port will return the IP address, port address, and port ...