Nmap Development mailing list archives

Re: NSE script: HTTP Debug method


From: Josh Amishav-Zlatin <jamuse () gmail com>
Date: Tue, 24 May 2016 14:23:02 +0300

Hi Paulino,

I attached an updated version. Regarding your comment on the output
structure. I changed the script to use stdnse.output_table(), but beyond
that the DEBUG verb is supported, there's not much else to add.

- Josh

On Mon, May 23, 2016 at 9:14 PM, Paulino Calderon <paulino () calderonpale com>
wrote:

Hello Josh,

The script looks good! It is an interesting check for .NET applications we
don’t have in NSE yet. I’d like to see a couple of improvements before
committing this:

-When reading script arguments use the variable SCRIPT_NAME to avoid
hardcoding names of scripts in files.
-Make generate_http_debug_req return a boolean instead of the string
‘enabled’.
-Return output in a structured table or using the NSE library vulns to
generate output compatible with XML mode.
-Include the @xmloutput tag to the documentation

Don’t forget to take a look at https://secwiki.org/w/Nmap/Code_Standards

Cheers.

On May 23, 2016, at 5:12 AM, Josh Amishav-Zlatin <jamuse () gmail com> wrote:

Hi,

I attached an NSE script that checks if the remote web server supports the
DEBUG method. The script simply sends the stop-debug command and looks for
a response body of 'OK'. As this is my first NSE script, I'm very
interested in feedback. Updates to the script will be available here:

https://github.com/jamuse/NSE/blob/master/http-debug.nse

- Josh
<http-debug.nse>_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/



Attachment: http-debug.nse
Description:

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

Current thread: