empire-5.10.3.ebuild

This commit is contained in:
Anton Bolshakov 2024-07-14 17:39:09 +08:00
parent 7585d11715
commit 4ab7b54bc1
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
6 changed files with 8 additions and 199 deletions

View file

@ -1,2 +1 @@
DIST empire-5.9.4.tar.gz 49740517 BLAKE2B 663228aa222506a8a3f36dcc8b8119dba112ecd5c82fcabf26bd30df5d3faa2284ea2cfcb2ec517d85860c07173460280f663284d808a4d4975c50a379ce49b3 SHA512 c2b76f776d4c86b1085937e4328953b914d870cd694b480125c1359ce9ac50ef826f19b0934fd76d2a24316e1cf0347641ee31df28af0b8eaf98a220dd92e650
DIST empire-5.9.5.tar.gz 49739331 BLAKE2B 05dbabef0a79afa525716a405997e4657618840050e0690b7c819d53e7b71858fe08be32dcecc58220ea7066eab70286b8bd2b1916e8bdd789634e6fa90f68c2 SHA512 887501d162fa82d349a803129bd88c090a0f169cf14eeb23babccc5af3a1b37014152632e18ddc1eb54b88c13e4d0c8010f002ff09ff0575711e15d50966f343
DIST empire-5.10.3.tar.gz 61867672 BLAKE2B d7cdee89729a38a9c9800f60ae40e01e922470ea8f5ae50ee2a0983d6cd5a9a33249f9a9d8e941f850ef1040403b207f11fcf74c252bdbcddaaef2cbcbbbb83a SHA512 07612488ef75016221fcc0f9211b0502b204dfcff3f53e06615e8ee6a5b734b0a8eb2413600534df4467fd362b8530535032b58afe256b3d2fb3d767f252a8f1

View file

@ -12,9 +12,10 @@ 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}"
KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="powershell java"
REQUIRED_USE="powershell? ( !x86 )
@ -40,7 +41,7 @@ RDEPEND="${PYTHON_DEPS}
dev-python/sqlalchemy_utc[${PYTHON_USEDEP}]
>=dev-python/prompt-toolkit-3.0.9[${PYTHON_USEDEP}]
>=dev-python/terminaltables-3.1.0[${PYTHON_USEDEP}]
>=dev-python/humanize-4.8.0[${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}]
@ -49,15 +50,16 @@ RDEPEND="${PYTHON_DEPS}
>=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-11.0.3[${PYTHON_USEDEP}]
>=dev-python/websockets-12.0[${PYTHON_USEDEP}]
>=dev-python/pyperclip-1.8.2[${PYTHON_USEDEP}]
>=dev-python/flask-2.3.3[${PYTHON_USEDEP}]
>=dev-python/flask-3.0.2[${PYTHON_USEDEP}]
>=dev-python/python-obfuscator-0.0.2[${PYTHON_USEDEP}]
>=dev-python/pyinstaller-5.13.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}]
@ -70,8 +72,6 @@ RDEPEND="${PYTHON_DEPS}
DEPEND="${RDEPEND}"
S="${WORKDIR}/Empire-${PV}"
pkg_setup() {
python-single-r1_pkg_setup
}

View file

@ -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_{10..12} )
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"
KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
SLOT="0"
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/jinja[${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/terminaltables-3.1.0[${PYTHON_USEDEP}]
>=dev-python/humanize-4.8.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-11.0.3[${PYTHON_USEDEP}]
>=dev-python/pyperclip-1.8.2[${PYTHON_USEDEP}]
>=dev-python/flask-2.3.3[${PYTHON_USEDEP}]
>=dev-python/python-obfuscator-0.0.2[${PYTHON_USEDEP}]
>=dev-python/pyinstaller-5.13.2[${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/pysecretsocks[${PYTHON_USEDEP}]
dev-python/donut-shellcode[${PYTHON_USEDEP}]
')
powershell? (
!x86? ( app-shells/pwsh-bin ) )
java? (
|| ( virtual/jre:* virtual/jdk:* ) )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/Empire-${PV}"
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"
}

View file

@ -1 +0,0 @@
DIST dbus_fast-2.21.1.tar.gz 69413 BLAKE2B 65f83b2b78fcc042000f0723768a2f405e43d2c7eaefe2097719e6b6c5a259edcfa3f84359bd39e9889f79559cde1b904b2aa3e814e6c833bbf42c485058fc78 SHA512 100e848c2da713fefdaab8eabdcda83828116eb7ea48332bdd61b870b859c06e5a57c9ff95a4347fd087ca222c0f7cd0ab9e6059c37c29e8c57f64848c7e7da6

View file

@ -1,27 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_USE_PEP517=poetry
inherit distutils-r1 pypi
DESCRIPTION="A faster version of dbus-next"
HOMEPAGE="https://github.com/bluetooth-devices/dbus-fast https://pypi.org/project/dbus-fast/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.md"
BDEPEND="
>=dev-python/cython-3[${PYTHON_USEDEP}]
test? (
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest

View file

@ -1,16 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">dbus-fast</remote-id>
<remote-id type="github">bluetooth-devices/dbus-fast</remote-id>
<maintainer status="unknown">
<email>bluetooth@koston.org</email>
<name>Bluetooth Devices Authors</name>
</maintainer>
</upstream>
</pkgmetadata>