Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: [NSE] (RFC) LLTD (Link Layer Topology Discovery)
From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 03 Oct 2011 18:20:14 -0500

On 10/03/2011 04:08 PM, Gorjan Petrovski wrote:
Thanks for the patch and notices. I've committed it as r26801.

The issue I brought up is still in the script, since l2 and l3 are accessed before you check status. Here's the updated patch:
Index: lltd-discovery.nse
--- lltd-discovery.nse    (revision 26803)
+++ lltd-discovery.nse    (working copy)
@@ -186,7 +186,6 @@
     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

Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]