mailing list archives
Re: [RFC] Username/Password NSE library
From: Kris Katterjohn <katterjohn () gmail com>
Date: Wed, 25 Jun 2008 01:25:48 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Patrick Donnelly wrote:
I took the liberty of making some improvements to your unpwdb.lua
module. Notably, if the module can't find a password/username database
immediately upon being loaded it will error. Also, I changed the two
functions, usernames and passwords, to be usable by Lua's generic for
loop construct to provide functionality I think you guys have been
I've attached the file for you to look at, hopefully it's what you
guys are looking for. It should be easy to modify usernames and
passwords to return longer or shorter lists based on a parameter.
I welcome all improvements, especially since I'm learning Lua as I go along.
My initial reactions:
* I mentioned the functionality of returning a table of usernames and
passwords, and the option of returning a table of only a certain size, but
nobody thought this was best next to the closure (e.g. ). Of course, if
this is the new desired functionality, then by all means let's use it.
* The third return value from the functions, which tells the caller whether
we're using a user-defined list or not, is always nil in yours.
Aside from these, your changes seem to work fine after I modified my test
script to handle them.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Sent through the nmap-dev mailing list
Archived at http://SecLists.Org
Re: [RFC] Username/Password NSE library Kris Katterjohn (Jun 24)