Nmap Development mailing list archives
Re: NSE CLI debugger
From: Kris Katterjohn <katterjohn () gmail com>
Date: Sun, 30 Mar 2008 17:48:35 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Diman Todorov wrote:
I moved the debugger to svn://svn.insecure.org/nmap-exp/diman so if you want to try it, you need to get these sources instead of trunk. cheers, Diman
Hey Diman, I *love* this debugger! :) Being able to list the local and global variables (locs and glob) is very neat. These are two my favorite aspects (perhaps only so far): - - Being able to run your own line in the current context is interesting! - - The dump command is great! This is testing with your paused showHTMLTitle script run against my machine: [DEBUG]> dump host host = { -- table: 0x8167118 name = "localhost"; bin_ip = <removed> directly_connected = true; bin_ip_src = <removed> interface = "lo"; ip = "127.0.0.1"; }; [DEBUG]> dump port port = { -- table: 0x817df08 number = 80; version = table: 0x817f5c0 protocol = "tcp"; service = "http"; state = "open"; reason = "syn-ack"; }; [DEBUG]> dump port.version port.version = { -- table: 0x817f5d0 name_confidence = 3; name = "http"; rpc_status = "untested"; service_tunnel = "none"; service_fp = "table"; }; That's very cool! The other commands along these same lines (vars, fenv, etc.) are cool as well. The debugger does crap out sometimes: [DEBUG]> what stdnse.strsplit Lua in ./nselib/stdnse.lua 23..43 [DEBUG]> what stdnse.nonexistent SCRIPT ENGINE: ./nselib/debugger.lua:784: ./nselib/debugger.lua:1093: attempt to concatenate local 'v' (a nil value) <Nmap continues with script engine> Adding another check in there for nonexistent symbols and then just printing a warning would be best IMO. I think this debugger would make a great addition to NSE. Hopefully you can merge it back over sometime soon. Thanks, Kris Katterjohn -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQIVAwUBR/AYwf9K37xXYl36AQKQ6w/8CJl5JkDXlBDgulvy+jblHXdzXVijcMqG 0kI21tLp0U3sSO5/vWSL36T7WpGeYenxxgvwPhTfMMLKxJLWAh7Y1VCHgexipE2b rjropKSXvLlV5eKcRvBl9VleJTg4V5gAOW/T7GIZeOPF1SrDGdq+EwKuOipbgvPW wYezYql6wilZ4ExXGqfi8VMjS1lrZoachhHZGv5FtHmh9xtR+qEj+Wya18P1SQBT mIbA92VV57nd/k4zUR7wSe3fa14DT2hDHYngRokcPU/WFK7QTQaOyVSbDxjzA5f5 phgYE1ACq2uYCAcYxgNgM68eaHiSoT6PO1pxdi4lZMxXbLsgy0RQfoAbvU4t0+Ld LpffZ3K9QUD72x7veBjqIgmMbyBJU8mzbrSWnEBaUVRd57oVVxI4dad3uhMAgDcv cx27U2z34vwvzQCXnkLI7aD1U/rjvY2xcXqD7Wx2t36bpsDq6It1wFNj2FgoVCNB GA+wef1yBtsZzmUYmPHaO27swDFpZV/DPkCjGWduGcMR1qONuE36kvVSHwNWqI8o AHGd0Qd9/PykziMM3pU3iHcrjCZbPuP8VUfcH2PXqHk/kbfFByNKFF4owk5bHNbe YIbhh1eESH5d9+bil51dvWwE/UUY32qVxuNAVkqV7sn9brnyVShC5dS+Nhrck8hc tnSQ4J9+Cug= =2grh -----END PGP SIGNATURE----- _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- NSE CLI debugger Diman Todorov (Feb 03)
- Re: NSE CLI debugger Fyodor (Feb 03)
- Re: NSE CLI debugger Diman Todorov (Feb 03)
- Re: NSE CLI debugger Kris Katterjohn (Mar 30)
- Re: NSE CLI debugger Diman Todorov (Feb 03)
- Re: NSE CLI debugger Fyodor (Feb 03)