#!/bin/sh
# (c)2003 by Jan Krupa (krupaj@mobilnews.cz)
# http://www.mobilnews.cz/honza/
NMAP_PATH=nmap
ping_host_all="";
for LINE in `cat $1`; do
ping_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"; } }';
WebSVN
- netmap
- Blame
- Rev 1
- /gen_onestat_nmap
netmap |
Subversion Repositories: |
[/] [gen_onestat_nmap] - Blame information for rev 1
Powered by WebSVN 2.2.1