mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-30 12:02:57 +01:00
corscanner: new tool (deps for net-analyzer/osmedeus)
This commit is contained in:
parent
aae7528cd5
commit
c2c6d8a71d
4 changed files with 60 additions and 0 deletions
1
net-misc/corscanner/Manifest
Normal file
1
net-misc/corscanner/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST corscanner-20190721.tar.gz 2249760 BLAKE2B 81c35fe140893813070344bcbbee74da121da91f217a354b9e77c1f99b9b05a19326be44c4d9c0fe6f1f31279c04cece99cb399af90987dc92243501f8596bf0 SHA512 d7d20aed656484dad23f10e1a83b5d400da39e908182e09ad259d066f6ab14674af239f86378d128a08f61409652e8dfdbc52d565775aa94eb17b521802671df
|
||||
1
net-misc/corscanner/corscanner-20190721.ebuild
Symbolic link
1
net-misc/corscanner/corscanner-20190721.ebuild
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
./corscanner-99999999.ebuild
|
||||
50
net-misc/corscanner/corscanner-99999999.ebuild
Normal file
50
net-misc/corscanner/corscanner-99999999.ebuild
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6} )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Fast CORS misconfiguration vulnerabilities scannerbeers"
|
||||
HOMEPAGE="https://github.com/chenjj/CORScanner"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/chenjj/CORScanner"
|
||||
else
|
||||
# snapshot: 20190721
|
||||
HASH_COMMIT="a4894211115ad7f3a59fbd3e69b20575fd74e435"
|
||||
|
||||
SRC_URI="https://github.com/chenjj/CORScanner/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~mips ~x86"
|
||||
S="${WORKDIR}/CORScanner-${HASH_COMMIT}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT=0
|
||||
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/gevent[${PYTHON_USEDEP}]
|
||||
dev-python/tldextract[${PYTHON_USEDEP}]
|
||||
dev-python/argparse[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]"
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r common \
|
||||
origins.json \
|
||||
*domains.txt \
|
||||
*.py
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}"
|
||||
|
||||
make_wrapper "cors_scan" \
|
||||
"python3 /usr/share/${PN}/cors_scan.py"
|
||||
|
||||
dodoc *.md
|
||||
}
|
||||
8
net-misc/corscanner/metadata.xml
Normal file
8
net-misc/corscanner/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>email@linxon.ru</email>
|
||||
<name>Yury Martynov</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
Loading…
Reference in a new issue