From 3973d422a2fa1184e24dd1bf2af9249771576365 Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Tue, 4 May 2021 18:17:41 +0530 Subject: [PATCH] added nikto tool completion --- clean_files.txt | 1 + completion/available/nikto.completion.bash | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 completion/available/nikto.completion.bash diff --git a/clean_files.txt b/clean_files.txt index 40dd3ed3..32848071 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -60,6 +60,7 @@ completion/available/kubectl.completion.bash completion/available/lerna.completion.bash completion/available/minikube.completion.bash completion/available/ngrok.completion.bash +completion/available/nikto.completion.bash completion/available/notify-send.completion.bash completion/available/npm.completion.bash completion/available/packer.completion.bash diff --git a/completion/available/nikto.completion.bash b/completion/available/nikto.completion.bash new file mode 100644 index 00000000..01dd9519 --- /dev/null +++ b/completion/available/nikto.completion.bash @@ -0,0 +1,43 @@ +# shellcheck shell=bash + +__nikto_completion() { + local prev=$(_get_pword) + local curr=$(_get_cword) + + case $prev in + -ask) + # shellcheck disable=SC2207 + COMPREPLY=($(compgen -W "yes no auto" -- "$curr")) + ;; + -Display) + # shellcheck disable=SC2207 + COMPREPLY=($(compgen -W "1 2 3 4 D E P S V" -- "$curr")) + ;; + -evasion) + # shellcheck disable=SC2207 + COMPREPLY=($(compgen -W "1 2 3 4 5 6 7 8 A B" -- "$curr")) + ;; + -Format) + # shellcheck disable=SC2207 + COMPREPLY=($(compgen -W "csv htm nbe sql txt xml" -- "$curr")) + ;; + -mutate) + # shellcheck disable=SC2207 + COMPREPLY=($(compgen -W "1 2 3 4 5 6" -- "$curr")) + ;; + -Tuning) + # shellcheck disable=SC2207 + COMPREPLY=($(compgen -W "0 1 2 3 4 5 6 7 8 9 a b c d e x" -- "$curr")) + ;; + -Userdbs) + # shellcheck disable=SC2207 + COMPREPLY=($(compgen -W "all none" -- "$curr")) + ;; + *) + # shellcheck disable=SC2207 + COMPREPLY=($(compgen -W "-H -Help -ask -Cgidirs -config -Display -dbcheck -evasion -Format -host -404code -404string -id -key -list-plugins -maxtime -mutate -mutate-options -nointeractive -nolookup -nossl -no404 -Option -output -Pause -Plugins -port -RSAcert -root -Save -ssl -Tuning -timeout -Userdbs -useragent -until -update -useproxy -Verbost -vhost" -- "$curr")) + ;; + esac +} + +complete -F __nikto_completion nikto