Home page logo

nmap-dev logo Nmap Development mailing list archives

Fwd: nmap --script-updatedb & spec file
From: Diman Todorov <diman.todorov () chello at>
Date: Sun, 9 Dec 2007 11:22:33 +0100

oops, forgot to cc to nmap-dev

Begin forwarded message:

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  
rebuild the
NSE scripts database but it insists on looking for the scripts under
/usr/share/nmap/scripts, which is not correct while I'm building  
the rpm.
I've tried to play with --datadir and --script but they do not seem  
to help.

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 -- 
datadir=mydir --script-updatedb


Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]