mailing list archives
Re: [NSE] broadcast-ping
From: Gorjan Petrovski <mogi57 () gmail com>
Date: Fri, 24 Jun 2011 13:33:46 +0200
Fixed a typo: num-probes instead of num_probes.
On Fri, Jun 24, 2011 at 4:06 AM, Gorjan Petrovski <mogi57 () gmail com> wrote:
I've attached the broadcast-ping script.
Currently it takes the -e <interface> option as mandatory. I'm waiting
for a reply on whether it should scan all interfaces if the -e option
is not specified, or if it should take an additional script argument
for the interface, so the whole scan doesn't have to be limited in
order to run this script.
Sends broadcast pings on a selected interface and outputs the responder hosts'
IP and MAC addresses. r00t permissions are a prerequisite.
The interface needs to be specified using the -e Nmap option. If the
<code>newtarget</code> script-arg is specified the script adds the
discovered IPs as targets.
The timeout of the ICMP probes can be specified using the <code>timeout</code>
script-arg. The default timeout is 3000 ms. A higher number might be necesary
when scanning across larger networks.
The number of sent probes can be specified using the <code>num-probes</code>
script-arg. The default number is 1. A higher value might get more results on
The ICMP probes sent comply with the --ttl and --data-length Nmap options, so
you can use those to control the TTL(time to live) and payload length
respectively. The default value for TTL is 64, and the length of the payload
is 0. The payload is consisted of random bytes.
| IP: 192.168.1.1 MAC: 00:23:69:2a:b1:25
| IP: 192.168.1.106 MAC: 1c:65:9d:88:d8:36
|_ Use the newtargets script-arg to add the results as targets
It only prints out the last line if the newtargets argument is not specified.
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/