Nmap Development mailing list archives
Re: [NSE] broadcast-ping
From: Patrik Karlsson <patrik () cqure net>
Date: Mon, 11 Jul 2011 12:26:26 +0200
Hi Gorjan, This new version works better. //Patrik On Jul 11, 2011, at 11:22 AM, Gorjan Petrovski wrote:
Hey Patrik, Thanks for testing it out. I forgot to filter out IPv6 addresses. This script is currently intended for IPv4 only. I'll talk to Weilin once he's got the hang of NSE programming about implementing IPv6, and whether he's going to do it or me. Here is the new version. On Sun, Jul 10, 2011 at 10:33 PM, Patrik Karlsson <patrik () cqure net> wrote:On Jul 10, 2011, at 6:40 PM, Gorjan Petrovski wrote:In the attachment you may find a new optimized version of the broadcast-ping script. This version runs a dedicated thread for each network interface. For each interface, first it opens the pcap socket, then dispatches all the probes and after all of them are dispatched it reads from the pcap socket. Does anyone think this is a bad approach? (I was originally afraid that we might lose packets if the pcap buffer is too small) I've also included the info in the description that Toni and I agreed on. Comments are welcome and appreciated :) Cheers, Gorjan <broadcast-ping.nse>_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/Hi Gorjan, The script works for me, however running it with -d3 I saw that a thread was crashing due to: scripts/broadcast-ping.nse:160: Error compiling our pcap filter: expression rejects all packets Looking a bit closer into the problem I noticed that the script seems to enter broadcast_if twice for the interface en0. The first time the if_table.address contains an ipv4 address and the second time with an ipv6 address. I'm running the script on OS X. Let me know if you need any more information. //Patrik -- Patrik Karlsson http://www.cqure.net http://www.twitter.com/nevdull77Thanks, Gorjan <broadcast-ping.nse>
-- Patrik Karlsson http://www.cqure.net http://www.twitter.com/nevdull77 _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [NSE] broadcast-ping, (continued)
- Re: [NSE] broadcast-ping Patrick Donnelly (Jul 03)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jul 04)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jul 05)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jul 05)
- Re: [NSE] broadcast-ping Toni Ruottu (Jul 06)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jul 04)
- Re: [NSE] broadcast-ping Patrick Donnelly (Jul 03)
- Re: [NSE] broadcast-ping Toni Ruottu (Jul 06)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jul 10)
- Re: [NSE] broadcast-ping Patrik Karlsson (Jul 10)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jul 11)
- Re: [NSE] broadcast-ping Patrik Karlsson (Jul 11)
- Re: [NSE] broadcast-ping Gorjan Petrovski (Jul 11)
- Re: [NSE] broadcast-ping Patrick Donnelly (Jul 12)