Re: nmap question

From: Max A. Schneider (maxschneider_at_chartermi-dot-net)
Date: 05/07/03


Date: Tue, 6 May 2003 18:03:40 -0400


"eleKtron" <rvennell@dbu.edu> wrote in message
news:6f4bb9a3.0305061325.7b621681@posting.google.com...
> Ok, i'm writing a shell script that once a day will run nmap, save the
> results in a text file and then e-mail the results to myself and the
> security administrator. The problem is, in the range of IP's that i'm
> scanning, probably 90% of them are "down" from nmap's point of view.
>
> as i shoud, i get the response (IE:)"Host (10.1.10.13) appears to be
> down, skipping it." for IP's not being used and the correct response
> of (IE:)"Host (10.1.10.15) appears to be up ... good." (and then it
> goes on with it's results for all the ports in that IP)
>
> what i want to do is silence the "Host (10.1.10.13) appears to be
> down, skipping it." and just print out the : "Host (10.1.10.15)
> appears to be up ... good." results. otherwise i get a huge file of
> results of which only 10 percent are of value to me. Is there a way
> to silence the reports of an IP being down and just print the good
> ones out? thanks for any help.
>
>
> -Ryan

Two ideas come to mind:

* If you're running DHCP and have access to your server's leases file then
you can parse the currently leased addresses from it.
* You can parse addresses out of either /etc/hosts or your DNS file,
depending on how you're doing name resolution

Hope this helps,

Max



Relevant Pages

  • Re: nmap question
    ... > Ok, i'm writing a shell script that once a day will run nmap, save the ... You could also grep out the lines you don't want at time of piping it to ...
    (comp.os.linux.security)
  • Re: nmap question
    ... > Ok, i'm writing a shell script that once a day will run nmap, save ... > to silence the reports of an IP being down and just print the good ...
    (comp.os.linux.security)
  • help parsing output
    ... I need to parse this file to get in a csv file the following information: ... I not that great in programming so writing a ruby or shell script do do this would take me weeks:-( ...
    (Debian-User)
  • Re: nmap question
    ... > Ok, i'm writing a shell script that once a day will run nmap, save the ... after running nmap when certain host is up and when it appears to be down? ... ["...rozmaite zwroty, matowe od patyny dawnosci." ...
    (comp.os.linux.security)
  • Deleting line from a file
    ... I am writing a shell script to parse an output from a file. ...
    (comp.unix.shell)