Nmap Development mailing list archives

Re: [NSE] broadcast-ping


From: Gorjan Petrovski <mogi57 () gmail com>
Date: Tue, 5 Jul 2011 18:41:45 +0200

Hello,

Please find the broadcast ping script attached.

Sends broadcast pings on a selected interface using raw ethernet packets and
outputs the responder hosts' IP and MAC addresses. r00t permissions are a
prerequisite.

The interface on which is broadcasted can be specified using the -e Nmap option
or the <code>broadcast-ping.interface</code> script-arg. If no interface is
specified this script broadcasts on all ethernet interfaces which have an IPv4
address defined.

The <code>newtarget</code> script-arg can be used so 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 ICMP 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.

The output looks the same like the first post in this thread.

Cheers,
Gorjan

Attachment: broadcast-ping.nse
Description:

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: