Nmap Development mailing list archives

Re: New script names


From: "Patrick Donnelly" <batrick.donnelly () gmail com>
Date: Wed, 12 Nov 2008 11:54:59 -0700

On Wed, Nov 12, 2008 at 6:20 AM, sara fink <sara.fink () gmail com> wrote:
I'd like to propose a  feature request about which nse script to choose in
the command line. Is it complicated to make tab completion?

There is a similar script in gentoo which helps in less typing commands.
example emerge moz will tab complete to mozilla-firefox.

The name of the script there is gentoo-bashcomp. If there is interest, I can
post here the source.

Thanks in advance
Sara

Hi Sara,

This would be simple enough to do in Lua if we use Lua patterns. A
simple iteration over all the files in the script database using
string.find would work very well. Thoughts on this?

Cheers,

-- 
-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: