Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: NSEC Enumeration script
From: Patrik Karlsson <patrik () cqure net>
Date: Fri, 11 Feb 2011 07:17:31 +0100


On Feb 10, 2011, at 22:56 , John Bond wrote:

have updated things to use an any query [although im not doing it on
the parent for some reason although i still think the parent is not
needed] much more effective.  and updated the dns lib to support the
any query but a bit of a have if findNiceAnswer gets a dtype of 255 it
will return a {dtype, answer} or an list of theses.

Also if anyone could let me know how to sort list properly in lua that
would be great

If you want to sort an array you could use the table.sort function.
The simplest way of calling it is simply like this:
table.sort(arr)

You can also supply it with a function as the second argument to perform more complex sorting:
table.sort(arr, function(a,b) return a.name < b.name end )

Sorting tables is different.


ill look at standardising the output next
<dns.lua.patch><dns-nsec-enum.nse>_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


//Patrik
--
Patrik Karlsson
http://www.cqure.net
http://www.twitter.com/nevdull77

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


  By Date           By Thread  

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