Monitoring

From Noah.org
Revision as of 00:45, 22 October 2009 by 204.16.156.66 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Scan the local network for list of IP and MAC addresses:

arp-scan --interval=10 --timeout=100 --retry=5 --ignoredups --localnet

nmap each IP address found:

for HOST_IP in $(arp-scan --quiet --interval=10 --timeout=100 --retry=5 --ignoredups --localnet | cut -f 1 | egrep "^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"); do\
    nmap -oG -PN -T4 -p1-1024 $HOST_IP
done