Nmap Development mailing list archives

Re: [PATCH] showOwner.nse script causing infinite loop


From: jah <jah () zadkiel plus com>
Date: Sat, 24 May 2008 21:25:24 +0100

On 24/05/2008 21:10, DePriest, Jason R. wrote:
Typo in your patch.

LUA INTERPRETER in nse_main.cc:606:
/usr/local/share/nmap/scripts/showOwner.nse:22: attempt to index
global 'prot' (a nil value)
Hroseshit.  I think my oruter is the orot of the porblem, it's messing
with my traffic ro something....

Srory about that.

jah

--- showOwner.nse.orig  Sat May 24 15:07:04 2008
+++ showOwner.nse       Sat May 24 15:09:05 2008
@@ -9,15 +9,17 @@
 
 categories = {"safe"}
 
-portrule = function(host, port) 
+portrule = function(host, port)
        local identd, decision
 
        local auth_port = { number=113, protocol="tcp" }
        identd = nmap.get_port_state(host, auth_port)
 
-       if 
+       if
                identd ~= nil
-               and identd.state == "open" 
+               and identd.state == "open"
+               and port.protocol == "tcp"
+               and port.state == "open"
        then
                decision = true
        else

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: