From fe8f5e42d09abd78051df82829227b37996135e7 Mon Sep 17 00:00:00 2001 From: tbhaxor Date: Mon, 7 Jan 2019 01:10:21 +0530 Subject: [PATCH] added wpscan completions --- completion/available/wpscan.completion.bash | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 completion/available/wpscan.completion.bash diff --git a/completion/available/wpscan.completion.bash b/completion/available/wpscan.completion.bash new file mode 100644 index 00000000..ec517aec --- /dev/null +++ b/completion/available/wpscan.completion.bash @@ -0,0 +1,16 @@ +#!/usr/bin/bash + +if command -v wpscan > /dev/null; then + __wpscan_completion() { + local OPTS=("--help --hh --version --ignore-main-redirect --verbose --output --format --detection-mode --scope --headers --user-agent --vhost --random-user-agent --user-agents-list --http-auth --max-threads --throttle --request-timeout --connect-timeout --disable-tlc-checks --proxy --proxy-auth --cookie-string --cookie-jar --cache-ttl --clear-cache --server --cache-dir --update --no-update --wp-content-dir --wp-plugins-dir --wp-version-detection --main-theme-detection --enumrate --exclude-content-based --plugins-list --plugins-detection --plugins-version-all --plugins-version-detection --themes-list --themes-detection --themes-version-all --themes-version-detection --timthumbs-list --timthumbs-detection --config-backups-list --config-backups-detection --db-exports-list --db-exports-detection --medias-detection --users-list --users-detection --passwords --usernames --multicall-max-passwords --password-attack --stealthy") + COMPREPLY=() + for _opt_ in ${OPTS[@]}; do + if [[ "$_opt_" == "$2"* ]]; then + COMPREPLY+=("$_opt_") + fi + done + } + + complete -F __wpscan_completion wpscan +fi +