Nmap Development mailing list archives
Re: [NSE] http.lua cleanups
From: Patrick Donnelly <batrick () batbytes com>
Date: Thu, 4 Nov 2010 09:57:39 -0400
On Thu, Oct 28, 2010 at 12:03 AM, Ron <ron () skullsecurity net> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey, I've spent the past few days cleaning up http.lua functions, and I'm pretty happy with the result I have now. Among other things, I: o Updated the documentation on pretty much every function o Updated the module documentation to discuss how to use http.lua, along with an example o Changed the interface to http.pipeline to work be significantly cleaner, and documented it (I also kept the old interface, which prints a warning and calls the new function) o Made functions 'local' that should have been, and that aren't being used o Document and validate the 'options' table o Document the 'response' table o Change nmap.registry.args.* to stdnse.get_script_args() o Normalized indentation and style, where possible, including function definitions ('function xxx()' instead of 'xxx = function()'). The code is in svn://svn.insecure.org/nmap-exp/ron/nmap-http-cleanup and I'm also attaching a .patch. I realize I've changed code written by a lot of different people, often only for reasons of style, so I apologize now if I offended anybody by changing their code. I'd like to do this, to some extent or other, to all of our libraries. I enjoy cleaning and documenting, and having better documentation will do wonders to help new script writers get going. Comments are always welcome!
I noticed get_default_timeout is a local function at the end of the http library... so it essentially is unused. Should this be removed? -- - Patrick Donnelly _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE] http.lua cleanups Ron (Oct 27)
- Re: [NSE] http.lua cleanups David Fifield (Nov 01)
- Re: [NSE] http.lua cleanups Ron (Nov 02)
- Re: [NSE] http.lua cleanups David Fifield (Nov 17)
- Re: [NSE] http.lua cleanups Ron (Nov 17)
- Re: [NSE] http.lua cleanups David Fifield (Nov 17)
- Re: [NSE] http.lua cleanups A. Ramos (Nov 18)
- Re: [NSE] http.lua cleanups Ron (Nov 18)
- Re: [NSE] http.lua cleanups David Fifield (Nov 01)
- Re: [NSE] http.lua cleanups Ron (Nov 04)