![]() ![]() |
netmap |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/bin/sh# (c)2003 by Jan Krupa (krupaj@mobilnews.cz)# http://www.mobilnews.cz/honza/NMAP_PATH=nmapping_host_all="";for LINE in `cat $1`; doping_host=`echo -n $LINE | awk -F\; '{ printf "%s", $2 }'`;ping_host_all="${ping_host_all} ${ping_host}";done$NMAP_PATH -vnsP $ping_host_all | awk -F\ '{ if ($1=="Host") { if (match($2, /\(/) == 0) { printf "%s;", $2; } else { printf "%s;", substr($2, 2, (length($2)-2)); } if ($6=="up.") printf "1;0;\n"; else printf "0;0;\n"; } }';