Generate a list of target hosts to nmap scan
Legg følgende inn i fila iplist.sh
#!/bin/bash # filename: iplist.sh # usage: ./iplist.sh 192.168.1.0/24 > iplist.txt nmap -sL $1 --randomize_hosts | grep '^Host' | cut -d '(' -f 2 | cut -d ')' -f 1
Output
192.168.1.215 192.168.1.39 192.168.1.168 192.168.1.11 192.168.1.225