Nmap Development mailing list archives

Re: [nse] ssl-cert: add support for Google Certificate Catalog


From: Henri Doreau <henri.doreau () greenbone net>
Date: Fri, 16 Sep 2011 18:28:33 +0200

2011/9/16 Vasiliy Kulikov <segooon () gmail com>:
I didn't use dns library much, but at least for A and SRV both results
are used by the caller.  But with TXT it looks like only the first
result makes sense.  I think it's a bug/misdocumentation of dns.lua.

--
Vasiliy

The answerFetcher[types.TXT] function in dns.lua seems to have a
problem: """return string.sub(dec.answers[1].data, 2)""" should also
return true.

The patch attached should fix the problem. It includes a fix for
asn-query.nse, which is I think the only affected script (libraries
included). I'd appreciate if someone could confirm before I go ahead
and commit it.

Regards.

-- 
Henri

Attachment: dns_fix.diff
Description:

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

Current thread: