Nmap Development mailing list archives
Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery)
From: Daniel Miller <bonsaiviking () gmail com>
Date: Tue, 27 Sep 2011 15:29:04 -0500
On 09/26/2011 05:23 PM, Gorjan Petrovski wrote:
I've committed it as r26706. If there are any comments/suggestions please share them.
I tried running this script from the latest SVN, and I am getting an error:
I think it's only happening because nothing on my network is responding, but here's a patch to clean it up anyway:NSE: lltd-discovery threw an error!...r/local/bin/../share/nmap/scripts/lltd-discovery.nse:191: attempt to concatenate local 'l2' (a nil value)stack traceback:...r/local/bin/../share/nmap/scripts/lltd-discovery.nse:191: in function 'main' /usr/local/bin/../share/nmap/nse_main.lua:718: in function </usr/local/bin/../share/nmap/nse_main.lua:718>
Index: lltd-discovery.nse =================================================================== --- lltd-discovery.nse (revision 26717) +++ lltd-discovery.nse (working copy) @@ -188,12 +188,11 @@ local start_s = os.time() while true do local status, plen, l2, l3, _ = pcap:pcap_receive() - local packet = l2..l3 if status then + local packet = l2..l3 if stdnse.tohex(packet:sub(13,14)) == "88d9" then start_s = os.time() - local packet=l2..l3 local ipv4, mac, ipv6 = parseHello(packet) if ipv4 then _______________________________________________ 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] (RFC) LLTD (Link Layer Topology Discovery) Fyodor (Jul 01)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Gorjan Petrovski (Aug 16)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Toni Ruottu (Aug 16)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Gorjan Petrovski (Aug 16)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Toni Ruottu (Aug 16)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Gorjan Petrovski (Sep 23)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) David Fifield (Sep 23)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Gorjan Petrovski (Sep 26)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Toni Ruottu (Sep 27)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Gorjan Petrovski (Sep 27)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Daniel Miller (Sep 27)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Toni Ruottu (Aug 16)
- Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery) Gorjan Petrovski (Aug 16)