File: autocompletion.sh

package info (click to toggle)
sqlmap 1.9.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,824 kB
  • sloc: python: 52,060; xml: 13,943; ansic: 989; sh: 304; makefile: 62; sql: 61; perl: 30; cpp: 27; asm: 7
file content (9 lines) | stat: -rwxr-xr-x 311 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#/usr/bin/env bash

# source ./extra/shutils/autocompletion.sh

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
WORDLIST=`python "$DIR/../../sqlmap.py" -hh | grep -Eo '\s\--?\w[^ =,]*' | grep -vF '..' | paste -sd "" -`

complete -W "$WORDLIST" sqlmap
complete -W "$WORDLIST" ./sqlmap.py