Nmap Development mailing list archives

Re: [NSE] broadcast-ping


From: Toni Ruottu <toni.ruottu () iki fi>
Date: Wed, 6 Jul 2011 12:58:43 +0300

Maybe this should be mentioned in the script description if that is
not already the case?

On Tue, Jul 5, 2011 at 10:08 PM, Gorjan Petrovski <mogi57 () gmail com> wrote:
If you want to test this script and have it detect Linux machines, you
have to enable broadcast reply on those machines:

echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts

On Tue, Jul 5, 2011 at 6:41 PM, Gorjan Petrovski <mogi57 () gmail com> wrote:
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




--
Gorjan
_______________________________________________
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: