How to do it...

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:

  1. To identify the usage options, Netcat (nc) should be called with the -h option, as follows:
  1. 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:
  1. Performing a scan attempt against an open port will return the IP address, port address, and port ...

Get Kali Linux Network Scanning Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.