Re: Tab completion in nse-scripts

Daniel Roberson <[email protected]>
Newsgroups gmane.comp.security.nmap.devel
Message-ID <CABh=YAz3OPeevdrqk7eAeS+F+-Y672XttQNRXAAFJ=Waq5sNEw@mail.gmail.com>
Hello Aniket!

Tab completion is done via your shell, not Nmap.

On the Ubuntu machine I am using right now:

- bash: /usr/share/bash-completion/completions/nmap (bash-completion
package)
- zsh: /usr/share/zsh/functions/Completion/Unix/_nmap (zsh-common package)

If you are using some other OS or distro, the locations and packages may be
different, but this is where the magic happens.

Hopefully this helps.

Kind regards,
- Daniel


On Fri, Jan 12, 2018 at 10:19 AM, Aniket Pandey <[email protected]> wrote:

> Hi folks!
>
> Recently, while I was using nse scripts I realized it did not have any
> tab-completion feature. While the same feature is offered in usual nmap
> scanning. For example,
>
> >root@aniketp # nmap --pack<TAB>
>
> results in
>
> >root@aniketp # nmap --packet-trace
>
> But nothing happened in case of :
>
> >root@aniketp # nmap --script http-fet<TAB>       ## (should've given
> http-fetch)
>
>
> So I wanted to know if any such feature exists in NSE? If it doesn't, then
> I'd like to work on it, as it seems very handy when you have long queries
> and lots of script arguments.
>
> If it is desirable then I'd most definitely want to work on this feature,
> after I get a heads-up from someone.
>
>
> Thanks and Regards,
>
> Aniket
>
> _______________________________________________
> Sent through the dev mailing list
> https://nmap.org/mailman/listinfo/dev
> Archived at http://seclists.org/nmap-dev/
>

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.