Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: [PATCH] Don't require ".nse" be passed to --script
From: Diman Todorov <diman.todorov () univie ac at>
Date: Fri, 23 Nov 2007 16:41:46 +0100

On Nov 16, 2007, at 3:45 AM, Kris Katterjohn wrote:

Hey everyone!

I've attached a patch to allow passing only the script name, the  
filename without the ".nse" extension, to --script.

I've been running multiple scripts, in different categories, and  
I've had to keep repetitively typing ".nse" on every filename...  
which I didn't like :)

An example:

--script bruteTelnet.nse,HTTPpasswd.nse,SQLInject.nse,robots.nse

turns into

--script bruteTelnet,HTTPpasswd,SQLInject,robots

Not an *incredibly* dramatic difference, but I much prefer it :)

And sometimes it seems a whole lot better when it's only 1 or 2  

All it does is try the passed argument (like "bruteTelnet"), and if  
it doesn't find that file it tries it with ".nse" appended to it,  
which it will find here.

Please let me know what you think!

I am not sure, the idea may have its merits. What do others think?

The only problem I am seeing is that this patch is a bit on the ugly  
side. I don't think that goto and that retried boolean are really  
necessary :)


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 ]