Nmap Development mailing list archives

Re: New script names


From: David Fifield <david () bamsoftware com>
Date: Wed, 12 Nov 2008 08:12:09 -0700

On Wed, Nov 12, 2008 at 08:44:30AM -0600, Ron wrote:
sara fink 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.

Unless you mean in Zenmap, tab completion isn't going to work because  
it's done by the shell, not by Nmap.

Some shells support tab completion on more than just file names. On my
Debian system I can do

$ apt-get install nm<TAB><TAB>
nmap     nmapfe   nmh      nmzmail

It knows that because I'm running apt-get I'm looking for a package
name, so it completes on those rather than file names. I don't know the
specifics of how it works. But anyway such a thing for script names is
conceivable.

David Fifield

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


Current thread: