
Nmap Development mailing list archives
Re: NOT alive scanner
From: William McVey <wam () cisco com>
Date: Tue, 27 Feb 2007 16:03:48 -0600
On Tue, 2007-02-27 at 17:14 +0000, joe sadfsdf wrote:
Hello All, Give a list of hosts, I want to determine which ones are DOWN. I'm trying NMap because it can give me really interesting info about the hosts which are up, but I can't get it to just tell me who is down! nmap -iL c:\my_host_list.txt -sP -oN c:\scan_results.txt -append-output -v -log-errors In the command shell, these options show me which hosts are up and which are down, however scan_results.txt only contains information about which hosts were up. In the command shell and my resulting file, I only want to log information about which hosts are down... how do I do this?
The man page warns that interactive (stdout) output is close, but not identical to Normal (-oN filespec) output and this seems to be one of those cases. It appears that stdout will add 'host down' notices with the -v flag, but -oN won't. Perhaps this is a bug, or perhaps this is the intended consequence. Regardless, you can get output which includes a host's alive and dead status with the -oG output. Try: nmap -iL c:\my_host_list.txt -sP -oG c:\scan_results.txt -append-output -v -log-errors Alternatively, you could simply use your platform's pipe or redirect capabilities to capture the 'interactive' (stdout) stream. -- William _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- NOT alive scanner joe sadfsdf (Feb 27)
- Re: NOT alive scanner Richard Sammet (Feb 27)
- Re: NOT alive scanner William McVey (Feb 27)