oops, forgot to cc to nmap-dev
Begin forwarded message:
> From: Diman Todorov <diman.todorov_at_univie.ac.at>
> Date: December 8, 2007 5:11:57 PM GMT+01:00
> To: Lionel Cons <lionel.cons_at_cern.ch>
> Subject: Re: nmap --script-updatedb & spec file
>
>
> On Dec 3, 2007, at 4:08 PM, Lionel Cons wrote:
>
>> Hello,
>>
>> I'm trying to write a spec file to build Nmap and add a couple of
>> home-grown
>> 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
>
> cheers,
> Diman
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Dec 09 2007