Nmap Development mailing list archives

Potential Error in /nselib/dns.lua


From: Eugene Alexeev <eugene.alexeev () gmail com>
Date: Thu, 8 Apr 2010 15:11:16 -0600

All,

The exception that lead to this post:
/nmap/nselib/dns.lua:110: attempt to get length of field 'dtype' (a number
value)

Current version of this line (#110) is:

if #rPkt.answers[1].dtype == types.CNAME then

I believe this line should be:

if rPkt.answers[1].dtype == types.CNAME then

I ran into the exception when I performed
dns.query(host=x.x.x.x,port=53,norecurse=true), when the DNS server replies
with nothing but a CNAME entry in the reply this code is hit and the
exception is thrown.

With all that said, this is my second day with Lua...so I may well be
wrong.  I have made the change on my local machine and the problem appears
fixed.  Please advise.

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


Current thread: