Monitoring

From Noah.org
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