Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: [NSE] broadcast-ping
From: Gorjan Petrovski <mogi57 () gmail com>
Date: Fri, 24 Jun 2011 04:06:31 +0200

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
larger networks.

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.

| broadcast-ping:
|   IP:      MAC: 00:23:69:2a:b1:25
|   IP:    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.


Attachment: broadcast-ping.nse

Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]