mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 02:50:26 +02:00
empire-6.0.0.ebuild
This commit is contained in:
parent
d980cba94e
commit
8589eb78c5
7 changed files with 12 additions and 225 deletions
|
|
@ -1,2 +1 @@
|
|||
DIST empire-5.11.5.tar.gz 61936894 BLAKE2B ecefdeebcfa99941ba345b35fd8eed326f6a65a49cd99dbb23b565afe140c0bef0fb3c7afbb84700b18ac596ae63e24dace52a2ec904038d80aabc1d52ea1610 SHA512 cdb08364e5076b27c7a2ca8c5582b55920ec6009fae2e753e21a68639615e11bfe434696c6036cd45aff8acf6697661fc56a1c39c49963d04913027d480fa776
|
||||
DIST empire-5.12.2.tar.gz 61940576 BLAKE2B 495a26d311f199260a2605f3105d877e8058482c8fe9ff3592e56a6485dbfe3922be461c50742fc22cef319e8a7f8b3a80fdc77c5e37c0229a31d062291eb2bf SHA512 adbd3e2aac8f9a8cfaa90427ffe6304aa80a02f82410950f20b0e2afc00bd9173be7a3dee6a8686dea83313b66ae47147a64aac668d03e2d0bc369f7258a98ba
|
||||
DIST empire-6.0.0.tar.gz 38108157 BLAKE2B f53ced8e3a90f51018ddd469455e0c165fb7af8aab769b2b75570dc2a2f814900d097988c208102b911896cb3b31b53e92119dfce3af20dbb7c2e307fc3ee5c6 SHA512 8de2ca9c46cf0c324dcf407b152e0dc0079078b9d771dda885e93b75645ea81eb335a2eb72a7f41995d56855abed0c58687ab63a5a8ff419b9b431b533215c8a
|
||||
|
|
|
|||
|
|
@ -1,146 +0,0 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit wrapper python-single-r1
|
||||
|
||||
DESCRIPTION="A post-exploitation framework"
|
||||
HOMEPAGE="https://github.com/BC-SECURITY/Empire"
|
||||
SRC_URI="https://github.com/BC-SECURITY/Empire/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/Empire-${PV}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="powershell java"
|
||||
REQUIRED_USE="powershell? ( !x86 )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# https://github.com/BC-SECURITY/Empire/issues/196
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/python-iptools[${PYTHON_USEDEP}]
|
||||
dev-python/macholib[${PYTHON_USEDEP}]
|
||||
dev-python/dropbox-sdk[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/zlib_wrapper[${PYTHON_USEDEP}]
|
||||
dev-python/netifaces[${PYTHON_USEDEP}]
|
||||
dev-python/jinja2[${PYTHON_USEDEP}]
|
||||
dev-python/xlutils[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pymysql[${PYTHON_USEDEP}]
|
||||
dev-python/sqlalchemy[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/sqlalchemy_utc[${PYTHON_USEDEP}]
|
||||
>=dev-python/prompt-toolkit-3.0.9[${PYTHON_USEDEP}]
|
||||
dev-python/terminaltables3[${PYTHON_USEDEP}]
|
||||
>=dev-python/humanize-4.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
>=dev-python/fastapi-0.104.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/uvicorn-0.22.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/jq-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/aiofiles-23.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-multipart-0.0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockify-0.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockets-12.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyperclip-1.8.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-3.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-obfuscator-0.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyinstaller-6.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stix2-3.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/docopt-ng-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-23.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/bcrypt-4.0.1[${PYTHON_USEDEP}]
|
||||
|
||||
dev-python/pysecretsocks[${PYTHON_USEDEP}]
|
||||
dev-python/donut-shellcode[${PYTHON_USEDEP}]
|
||||
|
||||
')
|
||||
powershell? (
|
||||
!x86? ( app-shells/pwsh-bin ) )
|
||||
java? (
|
||||
|| ( virtual/jre:* virtual/jdk:* ) )"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang "${S}"
|
||||
default
|
||||
}
|
||||
|
||||
#https://github.com/BC-SECURITY/Empire/issues/39
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r empire/ empire.py
|
||||
|
||||
# python_optimize "${D}/usr/share/${PN}/lib"
|
||||
|
||||
make_wrapper $PN \
|
||||
"${PYTHON} /usr/share/${PN}/empire.py" \
|
||||
"/usr/share/${PN}"
|
||||
|
||||
dodoc README.md Dockerfile changelog
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local _yesno_ask
|
||||
local _em_home="${EROOT}/usr/share/${PN}"
|
||||
|
||||
pushd "${_em_home}" >/dev/null || die
|
||||
|
||||
if [ -f "${_em_home}/data/empire.db" ]; then
|
||||
ewarn "Drop old database "${_em_home}/data/empire.db" for new configuring ..."
|
||||
read -r -p " [>] Are you sure? [y/N] " _yesno_ask
|
||||
|
||||
if [[ ${_yesno_ask,,} =~ ^(yes|y)$ ]]; then
|
||||
rm -f data/empire.db > /dev/null 2>&1 || die
|
||||
else
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
ebegin "Press ENTER to create password for database or Control-C to abort now"
|
||||
python3 setup/setup_database.py
|
||||
eend ${?} || die
|
||||
|
||||
if [ -f "${_em_home}/data/empire-chain.pem" ] || [ -f "${_em_home}/data/empire-priv.key" ]; then
|
||||
ewarn "Drop old ${_em_home}/data/empire-chain.pem and generate new cert ..."
|
||||
read -r -p " [>] Are you sure? [y/N] " _yesno_ask
|
||||
|
||||
if [[ ${_yesno_ask,,} =~ ^(yes|y)$ ]]; then
|
||||
rm -f data/{empire-chain.pem,empire-priv.key} > /dev/null 2>&1 || die
|
||||
else
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
openssl req -newkey rsa:2048 -new -nodes -x509 \
|
||||
-subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.pentoo.ch" \
|
||||
-keyout data/empire-priv.key \
|
||||
-out data/empire-chain.pem || die
|
||||
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "\nWarning. This software does not support system-wide installation"
|
||||
ewarn "See the following bug report for more details:"
|
||||
ewarn "https://github.com/BC-SECURITY/Empire/issues/39"
|
||||
ewarn
|
||||
ewarn "You need to run it from /usr/share/${PN} directory under 'root' account"
|
||||
ewarn "\nPlease configure your installation before using:"
|
||||
ewarn " emerge --config \"=${CATEGORY}/${PF}\"\n"
|
||||
}
|
||||
|
|
@ -26,39 +26,31 @@ RDEPEND="${PYTHON_DEPS}
|
|||
$(python_gen_cond_dep '
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/python-iptools[${PYTHON_USEDEP}]
|
||||
dev-python/macholib[${PYTHON_USEDEP}]
|
||||
dev-python/dropbox-sdk[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
dev-python/zlib_wrapper[${PYTHON_USEDEP}]
|
||||
dev-python/jinja2[${PYTHON_USEDEP}]
|
||||
dev-python/xlutils[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/pymysql[${PYTHON_USEDEP}]
|
||||
dev-python/sqlalchemy[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/sqlalchemy_utc[${PYTHON_USEDEP}]
|
||||
>=dev-python/prompt-toolkit-3.0.9[${PYTHON_USEDEP}]
|
||||
dev-python/terminaltables3[${PYTHON_USEDEP}]
|
||||
>=dev-python/humanize-4.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
>=dev-python/fastapi-0.104.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/uvicorn-0.22.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/jq-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/aiofiles-23.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-multipart-0.0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockify-0.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockets-12.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyperclip-1.8.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-3.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/fastapi-0.115.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/uvicorn-0.34.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/jq-1.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/aiofiles-24.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-multipart-0.0.20[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-socketio-5.12.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-obfuscator-0.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyinstaller-6.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stix2-3.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/docopt-ng-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-23.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyinstaller-6.12.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-24.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/netaddr-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/bcrypt-4.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-file-2.1.0[${PYTHON_USEDEP}]
|
||||
|
||||
dev-python/pysecretsocks[${PYTHON_USEDEP}]
|
||||
dev-python/donut-shellcode[${PYTHON_USEDEP}]
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST xlutils-2.0.0.tar.gz 61614 BLAKE2B 51fde8ef1a0a88ecccfb3cfb332fe8a31101d29865cfa6201001d272db34a5f210e988ccb99ba00344f80dd457a5c91866af12061af9342d556953700cf02916 SHA512 7b6c39912a2b23d718b1aaac2f21770f1e5b156fdc7416f11d4a7e6b52195ffffb982aecb52b5571599eb4928c7e09bbfb20fdf2554f0c49c286b243e2fb3ea9
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
From e9edf279ba2e699be92da7611368cf92b4d87cec Mon Sep 17 00:00:00 2001
|
||||
From: Chris Withers <chris@simplistix.co.uk>
|
||||
Date: Wed, 4 Apr 2018 08:05:06 +0100
|
||||
Subject: [PATCH] fix test expectations
|
||||
|
||||
---
|
||||
xlutils/tests/test_view.py | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xlutils/tests/test_view.py b/xlutils/tests/test_view.py
|
||||
index 7b32892..5b4aa2b 100644
|
||||
--- a/xlutils/tests/test_view.py
|
||||
+++ b/xlutils/tests/test_view.py
|
||||
@@ -219,6 +219,8 @@ def test_does_not_match(self):
|
||||
('XX',)
|
||||
|
||||
actual:
|
||||
-(u'',)'''
|
||||
+(u'',)
|
||||
+
|
||||
+While comparing [5][1]: 'XX' (expected) != u'' (actual)'''
|
||||
|
||||
compare(expected, actual=str(s.raised))
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zerochaos@gentoo.org</email>
|
||||
<name>Zero_Chaos</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">xlutils</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="provides a collection of utilities for working with Excel files"
|
||||
HOMEPAGE="https://pypi.org/project/xlutils/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/xlwt-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/xlrd-1.2[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
Loading…
Reference in a new issue