msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

26 Apr 2007 Generate a list of target hosts to nmap scan

Posted by

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

Tags: , , ,

Comments are closed.