nmap-completion icon indicating copy to clipboard operation
nmap-completion copied to clipboard

complete --script-args based on --script

Open bonsaiviking opened this issue 13 years ago • 1 comments

On 08/09/2011 12:27 PM, Vasiliy Kulikov wrote:

Hi Daniel,

This nice script can be improved for --script-args usage. I'm not familiar with bash completion, but the rough algo could be:

  1. Identify whether there is already any --script XXX

  2. grep @args $NMAPDIR/scripts/XXX.nse | cut -d@ -f2 | cut -d' ' -f 2 to get argument list

I find it very inconvenient to look at the documentation every time.

Thanks!

bonsaiviking avatar Aug 09 '11 20:08 bonsaiviking

Your second point isn't valid for all cases, Vasiliy Kulikov But I have made a script which auto-completes the --script-args command.

Commited as PR #4

rewanthtammana avatar May 23 '17 22:05 rewanthtammana