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. Description: 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. Output: | broadcast-ping: | 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. 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:
- [NSE] broadcast-ping Gorjan Petrovski (Jun 22)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jun 22)
- Re: [NSE] broadcast-ping Patrick Donnelly (Jun 23)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jun 23)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jun 23)
- Message not available
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jun 23)
- Re: [NSE] broadcast-ping Patrick Donnelly (Jun 23)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jun 23)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jun 23)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jun 24)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jun 23)