Nmap Development mailing list archives
Re: suggestion to nping
From: Andreas Hubert <ahu () censhare de>
Date: Tue, 06 Apr 2010 09:42:45 +0200
Hi Luis, thanks that could help! But I am always thinking, how I could use this new tool, to check and report specific hosts and their ports. For example, this -c0 could help, if I want to watch a specific host spontaneous, like waiting till the connection to it is possible. The other thing what would be interesting, is to monitor a specific hosts, while it's open port is just sometimes closed, because of some service problems. Therefore it would be good, to use nping in scripts. For example nping -p 22 somehost || echo this host is down | mailx -s "host is down" ahu () censhare de But now nping always returns exit code 0, because no matter if the port was open or not, nping ran without an error. Maybe there are other plans or ideas for nping and the best for me would be something like nping -p 22 --mailerr ahu () censhare de somehost That if an connection error would appear, nping would send an E-Mail to me, with the statistic of the executed nping! Thanks Andreas Am 04.04.10 13:37, schrieb Luis MartinGarcia.:
Hi Andreas, I've just commited a patch that should let you specify "--count 0" or "-c0" so Nping runs almost indefinitely, (for 2^32 rounds actually). You probably want to combine this with the --rate or --delay options to adjust how often packets get sent. I hope this helps. Regards, Luis MartinGarcia. On 03/31/2010 07:39 PM, Andreas Hubert wrote:nping is a really interesting tool for me, because right from the start, it does not only send one packet it sends 5 like a usual ping on Windows for example. But till now I did not found an option to send several packets till the process gets cancelled, like ping on Linux or Mac OS X. Because now if I wanna watch something, if a port is open or something, I need to build a loop around nmap, like while true; do nmap -PN -p 22 <host>; done to constantly check if port 22 is open on a specific host. It would be very good if in the future a nping -p 22 <host> would do this and give me stats for this after I ^C the process _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- suggestion to nping Andreas Hubert (Apr 01)
- Re: suggestion to nping Luis MartinGarcia. (Apr 04)
- Re: suggestion to nping Andreas Hubert (Apr 06)
- Re: suggestion to nping Luis MartinGarcia. (Apr 06)
- Re: suggestion to nping Andreas Hubert (Apr 06)
- <Possible follow-ups>
- Re: suggestion to nping GuangLiang Yang (Apr 02)
- Re: suggestion to nping GuangLiang Yang (Apr 02)
- Re: suggestion to nping Luis MartinGarcia. (Apr 04)