You can use IP ranges in Nmap by specifying the range in various formats. Here are a few examples:

  1. Using a hyphen (-): This allows you to specify a range of IP addresses.

    nmap 192.168.1.1-10

    This command scans the IP addresses from 192.168.1.1 to 192.168.1.10.

  2. Using CIDR notation: This allows you to specify a subnet.

    nmap 192.168.1.0/24

    This command scans all IP addresses in the 192.168.1.0 subnet (from 192.168.1.1 to 192.168.1.254).

  3. Using a file with a list of IPs: You can create a text file with a list of IP addresses and use the -iL option.

    nmap -iL targets.txt

    Here, targets.txt contains the list of IP addresses you want to scan.

  4. Combining ranges: You can combine multiple ranges or individual IPs.

    nmap 192.168.1.1,192.168.1.5-10,192.168.1.20

    This command scans 192.168.1.1, 192.168.1.5 to 192.168.1.10, and 192.168.1.20.

These methods allow you to efficiently scan multiple IP addresses or ranges using Nmap.

0 Comments

no data
Be the first to share your comment!