Nmap Development mailing list archives

unpwdb improvement (i hope)


From: Carlos Pantelides <carlos_pantelides () yahoo com>
Date: Fri, 19 Nov 2010 05:04:35 -0800 (PST)

Hi:

Driven by the integration of my script (http-vhosts.nse) to the nmap nse library framework, I developed a 
generalization of unpwdb, that allows to load files the same way as unpwdb do but giving only a name instead of adding 
a function as I did in http://seclists.org/nmap-dev/2010/q4/401



I worked on a copy of unpwdb and didn't update the documetation yet. If you accept this library, I will do it later. 
The same with accessing to nmap.registry.args.

I provide the library and a script and some data files to test the library.

To test it:

nmap localhost -p 80 --script nestedloops.nse 
--script-args="namesdb=names.lst,flavorsdb=flavors.lst,statesdb=states.lst,colorsdb=colors.lst"

You can copy *lst to nselib/data and drop --script-args

Waiting for your feedback...

Carlos Pantelides


      

Attachment: nestedloops.nse
Description:

Attachment: colors.lst
Description:

Attachment: flavors.lst
Description:

Attachment: names.lst
Description:

Attachment: states.lst
Description:

Attachment: filedb.lua
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: