From: Diman Todorov <diman.todorov () univie ac at>
Date: December 8, 2007 5:11:57 PM GMT+01:00
To: Lionel Cons <lionel.cons () cern ch>
Subject: Re: nmap --script-updatedb & spec file
On Dec 3, 2007, at 4:08 PM, Lionel Cons wrote:
I'm trying to write a spec file to build Nmap and add a couple of
NSE scripts to it. I've tried to use "nmap --script-updatedb" to
NSE scripts database but it insists on looking for the scripts under
/usr/share/nmap/scripts, which is not correct while I'm building
I've tried to play with --datadir and --script but they do not seem
I cannot reproduce your problem.
./nmap --datadir=. --script-updatedb
works just fine for me.
You need to keep in mind a few things: the script dir needs to be
scripts/, you need to set datadir to wherever scripts/ is located.
You can put your custom scripts into mydir/scripts and do --