How it works…

Providing options to specify the ports in both ranges and lists will allow the user to optimize their scans, thereby delivering quicker results, as a full port scan in general takes 10 times longer than a 1,000-port scan or a port-specified scan. This will also allow the user to find out hosts with specific ports open.

Get Network Scanning Cookbook 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.