mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 22:30:59 +02:00
empire: 3.2.2 bump
This commit is contained in:
parent
93cdee617c
commit
32a4b5bc9b
3 changed files with 4 additions and 130 deletions
|
|
@ -1,3 +1,2 @@
|
|||
DIST empire-3.1.5.tar.gz 8540484 BLAKE2B 9fac7cdff2ae372668824a6ac379a4e27bfbe35104fac5e7664bdbf7c5971c01e48f4830b56d097daea3b6fb48ff13cebbe6081bbd9451160c8e702b1a51addd SHA512 8645f16c4595422e426016d817ea2241dfd0e1621b2ec72ba28ad5678e8d35f6ec8a53a67441c352ad615f0dd6d1bb9909c917ac22a9d616cb92d82dd13c365c
|
||||
DIST empire-3.2.0.tar.gz 9541649 BLAKE2B bb148c9ef96a9684429d458d4f7de63741fb9154fa21238573700893274d22e168cfcd55f30368d82d0f27227dedb187f4bad022d03d841ccd4d52a9b6c230e5 SHA512 dd1bd4afc6f035da27819d1daac7f67452f418e168219e41fb8d9abc60453e01ab32ae0828bcf3f7ec0e9b77b5ca704a297bd903a3731f4bcf23b81abd1783a6
|
||||
DIST empire-3.2.1.tar.gz 9516967 BLAKE2B 0bd45cffdb278e5625651887ce635c0ee8422697f72d3d764b06433168bad579243a76b284749f3ba6b205b1e5b633f2a603ac1815a0eb0a2ab3e6a7b9d14d69 SHA512 12ef65b3eca9d5ce62d63232f14753ef32ec28bf32d059eac2510e38c3e78303180fde798097a8b0306e7d1642469400b4c24a8b5ec722a73dd73a4d470045a8
|
||||
DIST empire-3.2.2.tar.gz 9529426 BLAKE2B f13c0abfaebce053e530034313d30938d7c5eee54dea2610319c96ef90b183dfa0d0090e035b0bb6315835a34c8d91a323fcdd644d71206658e89b002155d5a0 SHA512 9b2e2a07621880be86edd3b2638821e40b4142b58c5b1162dc859b6d498b4702fd00ae76eb329e3503066a7bfad3f4d24d126a605be485879d8791258d18e336
|
||||
|
|
|
|||
|
|
@ -1,126 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
#https://github.com/BC-SECURITY/Empire/issues/39
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit eutils 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? ( amd64 )"
|
||||
|
||||
# waiting for the upstream
|
||||
# https://bugs.gentoo.org/684734
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/urllib3[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/requests[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/python-iptools[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pydispatcher[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/flask[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/macholib[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/dropbox-sdk[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pyinstaller[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/zlib_wrapper[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/netifaces[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/m2crypto[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pyminifier[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/xlutils[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pefile[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/bcrypt[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
powershell? (
|
||||
amd64? ( dev-lang/powershell-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
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r data/ lib/ plugins/ setup/ empire
|
||||
|
||||
python_optimize "${D}/usr/share/${PN}/lib"
|
||||
|
||||
make_wrapper $PN \
|
||||
"${PYTHON} /usr/share/${PN}/empire" \
|
||||
"/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"
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
EAPI=7
|
||||
|
||||
#https://github.com/BC-SECURITY/Empire/issues/39
|
||||
#https://github.com/BC-SECURITY/Empire/issues/196 python3.8
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
|
|
@ -39,10 +39,10 @@ RDEPEND="${PYTHON_DEPS}
|
|||
dev-python/cryptography[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pyminifier[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/xlutils[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pefile[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/bcrypt[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
powershell? (
|
||||
amd64? ( dev-lang/powershell-bin ) )
|
||||
|
|
@ -62,6 +62,7 @@ src_prepare() {
|
|||
default
|
||||
}
|
||||
|
||||
#https://github.com/BC-SECURITY/Empire/issues/39
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r data/ lib/ plugins/ setup/ empire
|
||||
Loading…
Reference in a new issue