# ronin-vulns completion -*- shell-script -*- # This bash completions script was generated by # completely (https://github.com/dannyben/completely) # Modifying it manually is not recommended _ronin-vulns_completions_filter() { local words="$1" local cur=${COMP_WORDS[COMP_CWORD]} local result=() if [[ "${cur:0:1}" == "-" ]]; then echo "$words" else for word in $words; do [[ "${word:0:1}" != "-" ]] && result+=("$word") done echo "${result[*]}" fi } _ronin-vulns_completions() { local cur=${COMP_WORDS[COMP_CWORD]} local compwords=("${COMP_WORDS[@]:1:$COMP_CWORD-1}") local compline="${compwords[*]}" case "$compline" in 'command_injection'*'--input') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'open_redirect'*'--input') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'reflected_xss'*'--input') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'command_injection'*'-i') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'command_injection'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--db --db-uri --db-file --import --first -F --all -A --print-curl --print-http --request-method -M --header -H --user-agent-string -U --user-agent -u --cookie -C --cookie-param -c --referer -R --form-param -F --test-query-param --test-all-query-params --test-header-name --test-cookie-param --test-all-cookie-params --test-form-param --test-all-form-params --input -i --escape-quote -Q --escape-operator -O --terminator -T")" -- "$cur" ) ;; 'open_redirect'*'-i') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'reflected_xss'*'-i') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'open_redirect'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--db --db-uri --db-file --import --first -F --all -A --print-curl --print-http --request-method -M --header -H --user-agent-string -U --user-agent -u --cookie -C --cookie-param -c --referer -R --form-param -F --test-query-param --test-all-query-params --test-header-name --test-cookie-param --test-all-cookie-params --test-form-param --test-all-form-params --input -i --test-url -T")" -- "$cur" ) ;; 'reflected_xss'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--db --db-uri --db-file --import --first -F --all -A --print-curl --print-http --request-method -M --header -H --user-agent-string -U --user-agent -u --cookie -C --cookie-param -c --referer -R --form-param -F --test-query-param --test-all-query-params --test-header-name --test-cookie-param --test-all-cookie-params --test-form-param --test-all-form-params --input -i")" -- "$cur" ) ;; 'scan'*'--input') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'sqli'*'--input') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'ssti'*'--input') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'lfi'*'--input') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'rfi'*'--input') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'completion'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--print --install --uninstall")" -- "$cur" ) ;; 'scan'*'-i') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'sqli'*'-i') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'ssti'*'-i') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'lfi'*'-i') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'rfi'*'-i') while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" ) ;; 'scan'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--db --db-uri --db-file --import --first -F --all -A --print-curl --print-http --request-method -M --header -H --user-agent-string -U --user-agent -u --cookie -C --cookie-param -c --referer -R --form-param -F --test-query-param --test-all-query-params --test-header-name --test-cookie-param --test-all-cookie-params --test-form-param --test-all-form-params --input -i --lfi-os --lfi-depth --lfi-filter-bypass --rfi-filter-bypass --rfi-script-lang --rfi-test-script-url --sqli-escape-quote --sqli-escape-parens --sqli-terminate --ssti-test-expr --open-redirect-url")" -- "$cur" ) ;; 'sqli'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--db --db-uri --db-file --import --first -F --all -A --print-curl --print-http --request-method -M --header -H --user-agent-string -U --user-agent -u --cookie -C --cookie-param -c --referer -R --form-param -F --test-query-param --test-all-query-params --test-header-name --test-cookie-param --test-all-cookie-params --test-form-param --test-all-form-params --input -i --escape-quote -Q --escape-parens -P --terminate -T")" -- "$cur" ) ;; 'ssti'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--db --db-uri --db-file --import --first -F --all -A --print-curl --print-http --request-method -M --header -H --user-agent-string -U --user-agent -u --cookie -C --cookie-param -c --referer -R --form-param -F --test-query-param --test-all-query-params --test-header-name --test-cookie-param --test-all-cookie-params --test-form-param --test-all-form-params --input -i --test-expr -T")" -- "$cur" ) ;; 'lfi'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--db --db-uri --db-file --import --first -F --all -A --print-curl --print-http --request-method -M --header -H --user-agent-string -U --user-agent -u --cookie -C --cookie-param -c --referer -R --form-param -F --test-query-param --test-all-query-params --test-header-name --test-cookie-param --test-all-cookie-params --test-form-param --test-all-form-params --input -i --os -O --depth -D --filter-bypass -B")" -- "$cur" ) ;; 'rfi'*) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--db --db-uri --db-file --import --first -F --all -A --print-curl --print-http --request-method -M --header -H --user-agent-string -U --user-agent -u --cookie -C --cookie-param -c --referer -R --form-param -F --test-query-param --test-all-query-params --test-header-name --test-cookie-param --test-all-cookie-params --test-form-param --test-all-form-params --input -i --filter-bypass -B --script-lang -S --test-script-url -T")" -- "$cur" ) ;; *) while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-vulns_completions_filter "--version -V help command-injection completion irb lfi open-redirect reflected-xss rfi scan sqli ssti xss cmdi")" -- "$cur" ) ;; esac } && complete -F _ronin-vulns_completions ronin-vulns # ex: filetype=sh