This commit is contained in:
blshkv 2020-02-12 08:54:33 +08:00
parent c94c7b31aa
commit ff8763eafd
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
7 changed files with 8 additions and 99 deletions

View file

@ -1,2 +1 @@
DIST PTP-0.3.0.tar.gz 16608 BLAKE2B caa4967210551932acf13fea2dfe1fbae78e37f982dd74e0317b2d8e40b41df9cf0e8888dabb38bfd273e553c96468a40009494535e152ec7fc17d2104fb1705 SHA512 e6f78a19dd999cb2880a9cecc53dbd66db940055fa8b3f3a73c88f2f6cd7ff06ad182fbe510ca5226b9d7eb675fa624d896546856498688ddab09e1fef0db08d
DIST PTP-0.4.2.tar.gz 694560 BLAKE2B 0fd0839652936a1c654d32bb1dca090053fb0e45bf7ebd0d575a140f6384f57691b08ce3f3ee0204e1443a8b64e4f90573e87a654b51c15037d11b9fc7050fd3 SHA512 eea093e5471784bccdfe461b206291dd60361cfd5b35af4224a5d9f3b3617f01359c4d2ca567b87242807a543c19036e52c759233c9349c6fcc571db022045d5

View file

@ -1,25 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
inherit distutils-r1
DESCRIPTION="Pentester's Tools Parser"
HOMEPAGE="https://pypi.python.org/pypi/PTP"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
src_prepare(){
rm -r tests/
}

View file

@ -1,11 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
#https://github.com/PiotrDabkowski/Js2Py/issues/106
#{2_7,3_5,3_6} )
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1

View file

@ -1,2 +1 @@
DIST owtf-2.4.tar.gz 5721812 BLAKE2B 960e840033119ddff6f378ac0e02fcb893126d46935fd918429ef7d5ff4c225d6b1d77170ed7f3dfcb1a0600e47b653551cf3d4c13a84b5370f345668e528822 SHA512 19dfad8fff9896deaf4793985c89a2e17b32249826ae5d8932d7fe925c14d8e662639414df0bd45be0a367ed1b2023d44f4ac0ca8759c9f006b895968a564f8b
DIST owtf-2.6.0.tar.gz 3986836 BLAKE2B aac1cdfd67ff2b5c361093b91b5ab3832afab88e2e5948c90aeea9562fae5189fa1b07de3cee19c0511b0cae5293d0bdf1ad28dbfc3964d6f12c33736b4bfa0f SHA512 14ede611ea324ecf94812e5951e665ec409d8398694f08bfa3907a243c71a31652de65a58896b0300c440e0a884a7f13e51e171c0cca1f5d102cf68d8413c837

View file

@ -1,66 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_6 )
inherit eutils distutils-r1
DESCRIPTION="The Offensive Web Testing Framework"
HOMEPAGE="https://github.com/owtf/owtf"
SRC_URI="https://github.com/owtf/owtf/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE=""
SLOT="0"
#KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="
>=dev-python/blinker-1.4
>=dev-python/cffi-1.10.0
>=dev-python/cookies-2.2.1
>=dev-python/dnspython-1.15.0
>=dev-python/future-0.16.0
>=dev-python/hrt-0.1.0
>=dev-python/ipaddr-2.2.0
>=dev-python/markdown-2.6.9
>=dev-python/pexpect-4.2.1
>=dev-python/psutil-5.3.1
>=dev-python/psycopg2-binary-2.7.4
>=dev-python/PTP-0.4.2
>=dev-python/pycurl-7.43.0
>=dev-python/pyopenssl-17.5.0
>=dev-python/PyVirtualDisplay-0.2.1
>=dev-python/pyyaml-3.12.0
>=dev-python/requests-2.18.4
>=dev-python/selenium-3.4.3
>=dev-python/six-1.10.0
>=dev-python/sqlalchemy-1.1.13
>=dev-python/tornado-5.0.2
"
src_prepare() {
rm -r tests/
epatch "${FILESDIR}"/owtf-setup.patch
eapply_user
}
pkg_config() {
einfo "If the following fails, it is likely because you forgot to start/config postgresql first"
su postgres -c "createuser owtf_db_user -D -S -R"
su postgres -c "createdb --owner=owtf_db_user owtfdb"
}
pkg_postinst() {
einfo "To complete the installation, run the following command:"
einfo "emerge --config net-analyzer/owtf-2.0a"
einfo
einfo "You will also need to create a certificate for the current user using the following commands:"
einfo "mdkir -p ~/.owtf/proxy/ca.key"
einfo "openssl genrsa -des3 -passout pass:owtf_ca_pass -out ~/.owtf/proxy/ca.key 4096"
einfo "openssl req -new -x509 -days 3650 -subj \"/C=US/ST=Pwnland/L=OWASP/O=OWTF/CN=MiTMProxy\" -passin pass:owtf_ca_pass -key ~/.owtf/proxy/ca.key -out ~/.owtf/proxy/ca.crt"
einfo
einfo "In addition, you might want to change owtf_db_user password in the database (currently empty)"
einfo "and adjust ~/.owtf/db.cfg accordingly"
}

View file

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
PYTHON_COMPAT=( python3_{6,7} )
inherit eutils distutils-r1
DESCRIPTION="The Offensive Web Testing Framework"

View file

@ -127,3 +127,7 @@ dev-util/appmon
#dev-python/pywerview is python2 only
#https://github.com/byt3bl33d3r/CrackMapExec/issues/317
net-analyzer/crackmapexec
#not ready for python3
#https://github.com/owtf/owtf/issues/949
net-analyzer/owtf