Easy Linux Tricks
Valuable Tips For Linux Administration
Friday, December 24, 2010
Nmap To Discover Network IP,Openport,OS Type IN XML Format
#! /bin/bash
ETHERNET=eth0
HostList=(`arp -vni $ETHERNET |cut -d " " -f 1 |grep -r 192 |xargs`)
for (( i = 0 ; i <= ${#HostList[*]} ; i++ ))
do
nmap -F -O -o2 --osscan-limit -oX ${HostList[i]}_$i.xml ${HostList[i]}
done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment