diff --git a/dev-db/sqlmap/Manifest b/dev-db/sqlmap/Manifest deleted file mode 100644 index 657fdba68..000000000 --- a/dev-db/sqlmap/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST sqlmap-1.5.11.tar.gz 6772855 BLAKE2B aaffb39fd91e81b7a6509ae71c6f873e632c94d106ae130f9f6e1744bbd859119d4e9cef3e8532d2e0883332ffc476c60c01c7f1929d264ed0523c06bc42a6d7 SHA512 36c41d25883c1f6203002c274dfa91399129c3518ab63b43cd5a35f54aba8be1aebee64dc21ad4c552729b2a4b6962b9b993cda3da856f2c1b046f4460b5c3c0 -DIST sqlmap-1.5.12.tar.gz 7258379 BLAKE2B 510a947412d82c0354236d963c2c17415dbb5d5046df33f7ae7b7fc432193f2c07fc3b95f8ed24a260cf601f5e44e7dac7502801b697bda1730296e213e3efef SHA512 6e7f2fa9aefc5a4bd05eb8382d95f40d962e1e0ef910f083cb17fe20bc76c6828a9beed8549561ffeb035feef230cb96655400cbff5049a87ce73cf63cc8d118 -DIST sqlmap-1.6.tar.gz 7258427 BLAKE2B 9dad4336491039ed554d7e4d02c838b3a16779f9384e04eee96197aaeba95a3a53dbc12988dd736d9e7475338f02fccc2c6c42ff3541220456109a59a15f8768 SHA512 0a1dc9a4aad3f246d0a5471e0b2003515fb9e59445479069a74b42a248b025ec1139e3aa72f992b173c154bdcfb1bccb833d3346942e304aa8492f6098c90470 diff --git a/dev-db/sqlmap/files/sqlmap.bash-completion b/dev-db/sqlmap/files/sqlmap.bash-completion deleted file mode 100644 index 42e1c7470..000000000 --- a/dev-db/sqlmap/files/sqlmap.bash-completion +++ /dev/null @@ -1,157 +0,0 @@ -# bash completion for sqlmap by Korznikov Alexander -# cp sqlmap_bash_completion /etc/bash_completion.d/sqlmap - -tamper=$(ls /usr/share/sqlmap/tamper|grep -v "__" |sed ':a;N;$!ba;s/\n/ /g') - -_sqlmap() -{ - local cur prev - - COMPREPLY=() - cur=`_get_cword` - prev=`_get_pword` - - case $prev in - - # List directory content - --tamper) - COMPREPLY=( $( compgen -W "$tamper" -- "$cur" ) ) - return 0 - ;; - --output-dir|-t|-l|-m|-r|--load-cookies|--proxy-file|--sql-file|--shared-lib|--file-write) - _filedir - return 0 - ;; - -c) - _filedir ini - return 0 - ;; - --method) - COMPREPLY=( $( compgen -W 'GET POST PUT' -- "$cur" ) ) - return 0 - ;; - --auth-type) - COMPREPLY=( $( compgen -W 'Basic Digest NTLM PKI' -- "$cur" ) ) - return 0 - ;; - --tor-type) - COMPREPLY=( $( compgen -W 'HTTP SOCKS4 SOCKS5' -- "$cur" ) ) - return 0 - ;; - -v) - COMPREPLY=( $( compgen -W '1 2 3 4 5 6' -- "$cur" ) ) - return 0 - ;; - --dbms) - COMPREPLY=( $( compgen -W 'mysql mssql access postgres' -- "$cur" ) ) - return 0 - ;; - --level|--crawl) - COMPREPLY=( $( compgen -W '1 2 3 4 5' -- "$cur" ) ) - return 0 - ;; - --risk) - COMPREPLY=( $( compgen -W '0 1 2 3' -- "$cur" ) ) - return 0 - ;; - --technique) - COMPREPLY=( $( compgen -W 'B E U S T Q' -- "$cur" ) ) - return 0 - ;; - -s) - _filedir sqlite - return 0 - ;; - --dump-format) - COMPREPLY=( $( compgen -W 'CSV HTML SQLITE' -- "$cur" ) ) - return 0 - ;; - -x) - _filedir xml - return 0 - ;; - esac - - if [[ "$cur" == * ]]; then - COMPREPLY=( $( compgen -W '-h --help -hh --version -v -d -u --url -l -x -m -r -g -c --method \ - --data --param-del --cookie --cookie-del --load-cookies \ - --drop-set-cookie --user-agent --random-agent --host --referer \ - --headers --auth-type --auth-cred --auth-private --ignore-401 \ - --proxy --proxy-cred --proxy-file --ignore-proxy --tor --tor-port \ - --tor-type --check-tor --delay --timeout --retries --randomize \ - --safe-url --safe-freq --skip-urlencode --csrf-token --csrf-url \ - --force-ssl --hpp --eval -o --predict-output --keep-alive \ - --null-connection --threads -p --skip --dbms --dbms-cred \ - --os --invalid-bignum --invalid-logical --invalid-string \ - --no-cast --no-escape --prefix --suffix --tamper --level \ - --risk --string --not-string --regexp --code --text-only \ - --titles --technique --time-sec --union-cols --union-char \ - --union-from --dns-domain --second-order -f --fingerprint \ - -a --all -b --banner --current-user --current-db --hostname \ - --is-dba --users --passwords --privileges --roles --dbs --tables \ - --columns --schema --count --dump --dump-all --search --comments \ - -D -T -C -X -U --exclude-sysdbs --where --start --stop \ - --first --last --sql-query --sql-shell --sql-file --common-tables \ - --common-columns --udf-inject --shared-lib --file-read --file-write \ - --file-dest --os-cmd --os-shell --os-pwn --os-smbrelay --os-bof \ - --priv-esc --msf-path --tmp-path --reg-read --reg-add --reg-del \ - --reg-key --reg-value --reg-data --reg-type -s -t --batch \ - --charset --crawl --csv-del --dump-format --eta --flush-session \ - --forms --fresh-queries --hex --output-dir --parse-errors \ - --pivot-column --save --scope --test-filter --update \ - -z --alert --answers --beep --check-waf --cleanup \ - --dependencies --disable-coloring --gpage --identify-waf \ - --mobile --page-rank --purge-output --smart \ - --sqlmap-shell --wizard' -- "$cur" ) ) - # this removes any options from the list of completions that have - # already been specified somewhere on the command line, as long as - # these options can only be used once (in a word, "options", in - # opposition to "tests" and "actions", as in the find(1) manpage). - onlyonce=' -h --help -hh --version -v -d -u --url -l -x -m -r -g -c \ - --drop-set-cookie --random-agent \ - --ignore-401 \ - --ignore-proxy --tor \ - --check-tor \ - --skip-urlencode \ - --force-ssl --hpp -o --predict-output --keep-alive \ - --null-connection -p \ - --invalid-bignum --invalid-logical --invalid-string \ - --no-cast --no-escape \ - --text-only \ - --titles \ - -f --fingerprint \ - -a --all -b --banner --current-user --current-db --hostname \ - --is-dba --users --passwords --privileges --roles --dbs --tables \ - --columns --schema --count --dump --dump-all --search --comments \ - -D -T -C -X -U --exclude-sysdbs \ - --sql-shell --common-tables \ - --common-columns --udf-inject \ - --os-shell --os-pwn --os-smbrelay --os-bof \ - --priv-esc --reg-read --reg-add --reg-del \ - -s -t --batch \ - --eta --flush-session \ - --forms --fresh-queries --hex --parse-errors \ - --save --update \ - -z --beep --check-waf --cleanup \ - --dependencies --disable-coloring --identify-waf \ - --mobile --page-rank --purge-output --smart \ - --sqlmap-shell --wizard ' - COMPREPLY=( $( \ - (while read -d ' ' i; do - [[ -z "$i" || "${onlyonce/ ${i%% *} / }" == "$onlyonce" ]] && - continue - # flatten array with spaces on either side, - # otherwise we cannot grep on word boundaries of - # first and last word - COMPREPLY=" ${COMPREPLY[@]} " - # remove word from list of completions - COMPREPLY=( ${COMPREPLY/ ${i%% *} / } ) - done - printf '%s ' "${COMPREPLY[@]}") <<<"${COMP_WORDS[@]}" - ) ) - -# else -# _filedir bat - fi -} && -complete -F _sqlmap sqlmap diff --git a/dev-db/sqlmap/metadata.xml b/dev-db/sqlmap/metadata.xml deleted file mode 100644 index ace7c2d3a..000000000 --- a/dev-db/sqlmap/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - unknown@pentoo.ch - Author Unknown - - diff --git a/dev-db/sqlmap/sqlmap-1.5.11.ebuild b/dev-db/sqlmap/sqlmap-1.5.11.ebuild deleted file mode 120000 index d94ced9ad..000000000 --- a/dev-db/sqlmap/sqlmap-1.5.11.ebuild +++ /dev/null @@ -1 +0,0 @@ -sqlmap-9999.ebuild \ No newline at end of file diff --git a/dev-db/sqlmap/sqlmap-1.5.12.ebuild b/dev-db/sqlmap/sqlmap-1.5.12.ebuild deleted file mode 120000 index d94ced9ad..000000000 --- a/dev-db/sqlmap/sqlmap-1.5.12.ebuild +++ /dev/null @@ -1 +0,0 @@ -sqlmap-9999.ebuild \ No newline at end of file diff --git a/dev-db/sqlmap/sqlmap-1.6.ebuild b/dev-db/sqlmap/sqlmap-1.6.ebuild deleted file mode 120000 index d94ced9ad..000000000 --- a/dev-db/sqlmap/sqlmap-1.6.ebuild +++ /dev/null @@ -1 +0,0 @@ -sqlmap-9999.ebuild \ No newline at end of file diff --git a/dev-db/sqlmap/sqlmap-9999.ebuild b/dev-db/sqlmap/sqlmap-9999.ebuild deleted file mode 100644 index 0c898dac0..000000000 --- a/dev-db/sqlmap/sqlmap-9999.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{9..10} ) -PYTHON_REQ_USE="sqlite" - -inherit eutils bash-completion-r1 python-single-r1 - -DESCRIPTION="An automatic SQL injection and database takeover tool" -HOMEPAGE="https://github.com/sqlmapproject/sqlmap" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/sqlmapproject/sqlmap" -else -# SRC_URI="https://github.com/sqlmapproject/sqlmap/archive/${PV}.tar.gz -> ${P}.tar.gz" - SRC_URI="https://github.com/sqlmapproject/sqlmap/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm64 x86" -fi - -LICENSE="GPL-2" -SLOT=0 -IUSE="doc" - -RDEPEND="${PYTHON_DEPS}" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -pkg_setup() { - python-single-r1_pkg_setup -} - -src_prepare() { - if [[ ${PV} == *9999 ]]; then - # fix broken tarball - find ./ -name .git | xargs rm -rf || die - - # Don't forget to disable the revision check since we removed the SVN files - sed \ - -e 's/= getRevisionNumber()/= "Unknown revision"/' \ - -i lib/core/settings.py || die 'sed failed!' - fi - - mv doc/ "${T}"/doc || die - #python_fix_shebang "${S}" - - default -} - -src_install () { - dodoc -r \ - README.md \ - $(use doc && echo "${T}/doc/*") - - dodir "/usr/share/${PN}/" - cp -R * "${D}/usr/share/${PN}/" || die - python_optimize "${D}/usr/share/${PN}" - - make_wrapper $PN \ - "python3 /usr/share/${PN}/sqlmap.py" - - newbashcomp "${FILESDIR}"/sqlmap.bash-completion sqlmap -} diff --git a/profiles/pentoo/base/package.accept_keywords/dev-db b/profiles/pentoo/base/package.accept_keywords/dev-db index 8afd8b499..f72751874 100644 --- a/profiles/pentoo/base/package.accept_keywords/dev-db +++ b/profiles/pentoo/base/package.accept_keywords/dev-db @@ -7,3 +7,4 @@ dev-db/neo4j-community #Gentoo unstable dev-db/sqlitebrowser +dev-db/sqlmap