Nmap Development mailing list archives

Re: [NSE] Extended ssl-enum-ciphers script


From: Daniel Miller <bonsaiviking () gmail com>
Date: Tue, 12 Aug 2014 15:43:42 -0500

On Tue, Aug 12, 2014 at 9:49 AM, Royce Williams <royce () techsolvency com>
wrote:

NSE: ssl-enum-ciphers against [redacted] threw an error!
/usr/local/share/nmap/scripts/ssl-enum-ciphers.nse:732: variable
'debug1' is not declared
stack traceback:
        [C]: in function 'error'
        /usr/local/share/nmap/nselib/strict.lua:80: in function '__index'
        /usr/local/share/nmap/scripts/ssl-enum-ciphers.nse:732: in
function </usr/local/share/nmap/scripts/ssl-enum-ciphers.nse:724>
        (...tail calls...)


The stdnse.debug1 (and stdnse.debug2, and stdnse.debug) function is a new
addition that is not in any released version of Nmap. You can get the
latest version of Nmap from SVN [1], or you can modify the script to remove
these references:

sed -i 's/stdnse\.debug[0-9]?/stdnse\.print_debug/g' ssl-enum-ciphers.nse

This will preserve the functionality of the script, at the cost of making a
few debug-level-2 statements into debug-level-1 and removing some useful
information about which thread is outputting the debug message.

Dan

[1] http://nmap.org/book/install.html#inst-svn
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: