#3: Read List of Hosts/Networks From A File (Ipv4)
#3: Read List of Hosts/Networks From A File (Ipv4)
The -iL option allows you to read the list of target systems using a text file. This is useful to scan
a large number of hosts/networks. Create a text file as follows:
cat > /tmp/test.txt
Sample outputs:
server1.cyberciti.biz
192.168.1.0/24
192.168.1.1/24
10.1.2.3
localhost
The syntax is:
nmap -iL /tmp/test.txt