tplmap: new tool

This commit is contained in:
Guido Kroon 2019-02-19 16:50:33 +01:00
parent 9ddc551cde
commit 6282479f35
No known key found for this signature in database
GPG key ID: 394C398C531EFAB0
7 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST wsgiref-0.1.2.zip 37351 BLAKE2B 5e4a78b8aa62b5cb7cfe805613c8e37f84f93d54a7500475068255b1670327459b3a6535e9236d7d60b36a83792644120dfec6e1a1cdfcca448099a23d59d2ed SHA512 d6a8723cf6b94e712630cec8667d15d77551ea3005bed6e57079ea3c0fa898328c7f9aafc6bdb3c5f0545f82ec147bea90a5fa65f0889dee199ed7b24d9ff2ff

View file

@ -0,0 +1,20 @@
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="WSGI (PEP 333) Reference Library"
HOMEPAGE="https://pypi.org/project/wsgiref/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.zip"
LICENSE="ZPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"

View file

@ -0,0 +1 @@
DIST tplmap-20181029.tar.gz 59288 BLAKE2B 6c19afbb57b84b1a939b46d204f05ba299b6e22b4be283a2ee28efa64ab4f783990eb7d7d50c1bf5f8f27a17f43ce26bd59b800d30c85d541426da40164d087f SHA512 5fc1054a57165bbd6bff7372e2684b1df383cbbc713efb715873481164dd9f2057ea69b76cd6c60964c683cf5477072c5d64f2ec751793e82127612647e2980a

View file

@ -0,0 +1,3 @@
#!/bin/sh
cd /usr/share/tplmap
exec ./tplmap.py $@

View file

@ -0,0 +1,56 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
EGO_PN=github.com/epinna/${PN}
inherit python-single-r1
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/epinna/tplmap.git"
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
EGIT_COMMIT="39c7c5bb54cd27489f0e220e7d90339faf3fc5b8"
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="Server-Side Template Injection and code injection tool"
HOMEPAGE="https://github.com/epinna/tplmap"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-python/certifi[${PYTHON_USEDEP}]
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
dev-python/wsgiref[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
src_prepare() {
python_fix_shebang "${PN}.py"
eapply_user
}
src_install(){
dodir /usr/share/${PN}
insinto /usr/share/${PN}
doins -r *
fperms +x /usr/share/${PN}/${PN}.py
# tplmap needs to be run from its installation directory.
insinto /usr/bin
doins "${FILESDIR}/${PN}"
fperms +x /usr/bin/${PN}
}

View file

@ -333,3 +333,6 @@ dev-python/htmlentities
# required by pwntools (argument)
=dev-python/intervaltree-2.1*
# required by net-analyzer/tplmap
~dev-python/wsgiref-0.1.2

View file

@ -134,3 +134,5 @@ net-analyzer/subfinder
~app-exploits/empire-2.5
~net-analyzer/commix-2.7
~net-analyzer/tplmap-20181029