Nmap Development mailing list archives
NSE Infrastructure: Eliminate script.db
From: Kris Katterjohn <katterjohn () gmail com>
Date: Mon, 24 Mar 2008 15:27:46 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey everyone, I tend to write quite a few pretty simple NSE scripts to interact with something, or to test something, or whatever it may call for. Unfortunately, everytime I write a new script I have to set NMAPDIR and use -script-updatedb to update the script database in my nmap directory--for a lot of simple scripts this gets old :). The Metasploit Framework seems to build their "database" of exploits, payloads, etc. straight from the directory structure rather than from a database file. I was thinking that Nmap could use the steps it takes to build the database file, but instead of writing to the script.db it could just build the internal list of scripts (or however it works--I'm not well-versed in the innards of NSE). This would eliminate the - -script-updatedb option and the script.db. This way, all that's needed for a script to be available to Nmap is for it to the placed in the directory. This makes for a lot simpler use of new scripts. Are there details I am missing that makes this infeasible for NSE? The NSE usage [1] says: "For efficiency reasons, NSE generates a script.db file which maps categories to the scripts they contain," so is the script.db for efficiency in this respect? Running -script-updatedb seems instantaneous, so perhaps I'm mistaken by what the usage refers to (although it could mean in the future when there are many more scripts)? I figure this could make a good NSE Infrastructure SoC project if it's any good. Thanks, Kris Katterjohn [1] http://nmap.org/nse/nse-usage.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQIVAwUBR+gOwP9K37xXYl36AQLMtxAAuXB8EYWncTNkTk1hkKNG6mbrbpuN9QZb Dg4ol2fNCCI5/RCKrDtHt92n/xQ5A1a+lwZydoHJ6u7Z9YJ+tvnBMftc/csHKftp geWiF7imBPtyGVJS2NEKZ6en7PPaaTJjWcZUaaZzhQIBGo7p3fO/WQWD1jbwnknp f/bVBdLy4NlHkt0F/uUUrRrKZ6OmsVDVDqkaIKdEqX/0GnzYx/cLCaz0NKWomIgK 0saYTtnevqSSq7NY2tPrscCNgfnkxhTF/0OJ4s+l12qI4QZGlhdI/hOqSYhaQ3NG j/GOnZkHIAzlFa5/3zmet20l399Nui5wieewDqXuH3e/le/8UsHMKR7tstJvH75Z YG5GnJH3Alf57na0LlMd+gCvEyNhXk4UQazVj3PSBJUJZTmiH19QcV+3jkb7pQP7 OpwJBYdSFCOWaGZvj0IsLOntBbYYFEjDOjS3f3/A/fEjhbQPNdLPSsKYJX+y2ZLc 5JBCiitB/YxX1VYqNjD5pkN7pzFXgyilYwsgUcUsQ1w5wXOLzGbq0q3Y5zAPg/De DXutH9nqVz1f+1CpgPVWbmGHrxiysD2M7PgWSkrZsx7QehrfLZYUqdDckHidZWI7 d22QMRV9KTu6/wCRZ7uIprekfwKDVtI46N1Bm2WrUNgseucvCq679NHdvWPoxQx8 Te98XOs70gw= =9E2h -----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 Infrastructure: Eliminate script.db Kris Katterjohn (Mar 24)
- Re: NSE Infrastructure: Eliminate script.db Brandon Enright (Mar 24)
- Re: NSE Infrastructure: Eliminate script.db Kris Katterjohn (Mar 24)
- Re: NSE Infrastructure: Eliminate script.db Fyodor (Mar 24)
- Re: NSE Infrastructure: Eliminate script.db Kris Katterjohn (Mar 24)
- Re: NSE Infrastructure: Eliminate script.db Brandon Enright (Mar 24)
