nmap-completion
nmap-completion copied to clipboard
complete --script-args based on --script
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:
Identify whether there is already any --script XXX
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!
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