Skip to content
Permalink
Browse files

owtf: deps fix, tornado, cleanup

  • Loading branch information...
blshkv committed Apr 16, 2019
1 parent 40d40c7 commit 8ec259e70aa48d4edf132d5506b7a2c0edde15cc

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -1,2 +1 @@
DIST python-oauth2-1.0.1.tar.gz 41984 BLAKE2B a5bf97c5e55c064b7f44c5557dcb0a3d9a9282554d4768858cc773aa46b3daa2f021b39238dc4f98b9b33e1830a927332c39a72003c3669fa54de8ece02005ef SHA512 4e21ab23e8f7663638c15b234157120bb8a76133dc3edb8373fd6e04969c154bd1c6e03266924257e8bb2fd8a4b0c30072af30adfaeeac05efe8c7570607800d
DIST python-oauth2-1.1.0.tar.gz 42017 BLAKE2B c0a3896f17975f55acb09b625c8ff1a4d69830156db1e7e505cc69621893554b06fad9bdf7e9e7d58558765b895b59524b9a3950c66fd642349a5679d9ee996b SHA512 51f1697d292c8fd5087886ca8cfde810a19ad54e39894e3687afedd3b69aa988da657c283a9496e03ffc2b40bb206e1e26bc7bab704ea1fe8a80e300f17e8700

This file was deleted.

Oops, something went wrong.
@@ -20,9 +20,9 @@ RDEPEND="dev-python/nose[${PYTHON_USEDEP}]
dev-python/pymongo[${PYTHON_USEDEP}]
dev-python/python-memcached[${PYTHON_USEDEP}]
dev-python/redis-py[${PYTHON_USEDEP}]
dev-python/tornado[${PYTHON_USEDEP}]
dev-python/mysql-connector-python[${PYTHON_USEDEP}]
"
!dev-python/tornado
www-servers/tornado[${PYTHON_USEDEP}]
dev-python/mysql-connector-python[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
!!dev-python/oauth2
dev-python/setuptools[${PYTHON_USEDEP}]

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,38 @@
--- install.sh.orig 2019-03-28 13:23:46.000000000 +0800
+++ install.sh 2019-03-31 13:24:19.453276269 +0800
@@ -9,7 +9,7 @@
os=${OSTYPE//[0-9.-]*/}


-. ${SCRIPT_DIR}/platform_config.sh
+#. ${SCRIPT_DIR}/platform_config.sh
export NVM_DIR="${HOME}/.nvm"

# ======================================
@@ -195,10 +195,10 @@
echo "${info}[!] There will be lot of output, please be patient :)${reset}"

# Copy git hooks
-echo "${info}[*] Installing pre-commit and black for git hooks...${reset}"
-pip install pre-commit==1.8.2
-pip install black==18.4a3
-pre-commit install
+#echo "${info}[*] Installing pre-commit and black for git hooks...${reset}"
+#pip install pre-commit==1.8.2
+#pip install black==18.4a3
+#pre-commit install

# Copy all necessary directories
for dir in ${ROOT_DIR}/data/*; do
@@ -209,9 +209,9 @@
check_sudo > /dev/null
fi

-proxy_setup
+#proxy_setup
ui_setup
-make post-install
+#make post-install

echo "${info}[*] Finished!${reset}"
echo "${info}[*] Start OWTF by running cd path/to/pentest/directory; owtf${reset}"
@@ -4,7 +4,6 @@
EAPI=7

PYTHON_COMPAT=( python2_7 )
#python3_6 )
inherit eutils distutils-r1

DESCRIPTION="The Offensive Web Testing Framework"
@@ -13,12 +12,9 @@ SRC_URI="https://github.com/owtf/owtf/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE=""
SLOT="0"
#KEYWORDS="~amd64"
IUSE="doc"
KEYWORDS="~amd64"
IUSE="doc tools"

#RESTRICT="test"

DEPEND=""
RDEPEND="
>=dev-python/blinker-1.4[${PYTHON_USEDEP}]
>=dev-python/cffi-1.10.0[${PYTHON_USEDEP}]
@@ -30,7 +26,7 @@ RDEPEND="
>=dev-python/markdown-2.6.9[${PYTHON_USEDEP}]
>=dev-python/pexpect-4.2.1[${PYTHON_USEDEP}]
>=dev-python/psutil-5.3.1[${PYTHON_USEDEP}]
>=dev-python/psycopg2-binary-2.7.4[${PYTHON_USEDEP}]
>=dev-python/psycopg-2.7.4[${PYTHON_USEDEP}]
>=dev-python/PTP-0.4.2[${PYTHON_USEDEP}]
>=dev-python/pycurl-7.43.0[${PYTHON_USEDEP}]
>=dev-python/pyopenssl-17.5.0[${PYTHON_USEDEP}]
@@ -41,10 +37,36 @@ RDEPEND="
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy-1.1.13[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy_mixins-1.1[${PYTHON_USEDEP}]
>=dev-python/tornado-5.0.2[${PYTHON_USEDEP}]
!dev-python/tornado
>=www-servers/tornado-5.0.2[${PYTHON_USEDEP}]
virtual/python-typing[${PYTHON_USEDEP}]
net-misc/proxychains
dev-db/postgresql
tools? (
net-analyzer/theHarvester
net-analyzer/nikto
net-analyzer/dnsrecon
net-analyzer/nmap
net-analyzer/whatweb
net-analyzer/metasploit
net-analyzer/wpscan
net-analyzer/wapiti
net-analyzer/hydra
net-analyzer/metagoofil
)
"
# tor libffi
#opt-tools:
# lbd gnutls-bin arachni o-saft
# tlssled skipfish dirbuster
# waffit o-saft

DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"

src_prepare() {
rm -r tests/
@@ -53,6 +75,9 @@ src_prepare() {
sed -e 's|, "install": PostInstallCommand||' -i setup.py || die "sed failed"
#relax deps
sed -e 's|==.*||' -i requirements/base.txt || die "sed failed"
#rename psycopg
sed -e 's|psycopg2-binary.*|psycopg2|' -i requirements/base.txt || die "sed failed"

eapply_user
}

@@ -64,13 +89,17 @@ pkg_config() {

pkg_postinst() {
einfo "To complete the installation, run the following command:"
einfo "/etc/init.d/postgresql-11 start"
einfo "emerge --config net-analyzer/owtf-${PV}"
einfo
einfo "You will also need to create a certificate for the current user using the following commands:"
einfo "mkdir -p ~/.owtf/proxy/{build,certs}/"
einfo "openssl genrsa -des3 -passout pass:owtf_ca_pass -out ~/.owtf/proxy/certs/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/certs/ca.key -out ~/.owtf/proxy/certs/ca.crt"
einfo
einfo "Next, patch the install.sh script and configure local env using the following command:"
einfo "./scripts/install.sh"
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"
}

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -229,7 +229,7 @@ dev-python/pyDes
~dev-python/django-rest-framework-3.7.3
~dev-python/django-guardian-1.4.3
~dev-python/django-oauth-plus-2.2.8
~dev-python/python-oauth2-1.0.1
=dev-python/python-oauth2-1.1*
=dev-python/mysql-connector-python-2.1*
~dev-python/django-oauth-toolkit-1.0.0
~dev-python/oauthlib-2.0.3
@@ -1 +1,3 @@
=www-servers/thin-1.7*

=www-servers/tornado-5.0*

0 comments on commit 8ec259e

Please sign in to comment.
You can’t perform that action at this time.