mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-19 13:20:57 +02:00
empire: 3.2.1 bump
This commit is contained in:
parent
face83c68f
commit
544a9fc677
6 changed files with 175 additions and 56 deletions
|
|
@ -1,2 +1,3 @@
|
|||
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
|
||||
|
|
|
|||
127
app-exploits/empire/empire-3.2.1.ebuild
Normal file
127
app-exploits/empire/empire-3.2.1.ebuild
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
# 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/196 python3.8
|
||||
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
|
||||
}
|
||||
|
||||
#https://github.com/BC-SECURITY/Empire/issues/39
|
||||
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"
|
||||
}
|
||||
|
|
@ -1,3 +1,2 @@
|
|||
DIST pycryptodomex-3.9.0.tar.gz 11562864 BLAKE2B 16b221ac81bab53498c7c52c3292ccd7f404a28cd0d99063ab6502021d45c6a48e49e67e0bbe8fefacd06807cc09c45f454500d59370c2faf0c00888c4e7fc0a SHA512 0ffc76780bee46a1ef38b131804ba63d511a57ad6b173366ee1ae2ac81e7718546e4c29a538fcc547c272f52ab679c45ed9de273fe57fb6ebc365d940aaa4cfa
|
||||
DIST pycryptodomex-3.9.4.tar.gz 11576896 BLAKE2B 41b63e33446afd40c579033977d183ce568d367715ccf21db077e40ba86058a00e27fce6b8e5a35b283eacc24121ec77654b11d43b957ae1fe3ec9321cfbbed9 SHA512 b88f07ed359f22d0d9c6141c2ef686f2bca991bdd79a4949fea780bb9792df573f234f18ac8d86137ca9036846872b9dd2e0fb769fe7422ec591bb7bd3a7d191
|
||||
DIST pycryptodomex-3.9.6.tar.gz 15453069 BLAKE2B f1bcca0f84738a1def485c0267373dab0c96772caf0c444cd78be758ccacfb6e3b577c611596f709ddbb1ec9e4f02506926fd87911c32a8217d451ede2e00e5a SHA512 14e2ff66046ea3629a6bd63446d1443135f46f9bc45afe15aca174a8f1949af2426a54f04624747d021b9ded70215eb965be90e6948d9566b60816ebaf050f70
|
||||
DIST pycryptodomex-3.9.7.tar.gz 15453116 BLAKE2B 3fad654a51e580ce6c8bdc2473c19293e7ad359fa81d01167ee3af938bc2f17fe8cf3abda75f8a4e8c0c5221f5abdc0cacaaaea38ab5450f419716a2858f2962 SHA512 50964f3fb1baa771d63eedf7f9b976670341eaeed3adf6935ab180aa5e866d88ba714314f570746cc1f62893a8c799f9126c09653591650137cf1f2d5d4e0a25
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A self-contained cryptographic library for Python"
|
||||
HOMEPAGE="https://www.pycryptodome.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/gmp:0
|
||||
virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A self-contained cryptographic library for Python"
|
||||
HOMEPAGE="https://www.pycryptodome.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/gmp:0
|
||||
virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
46
dev-python/pycryptodomex/pycryptodomex-3.9.7.ebuild
Normal file
46
dev-python/pycryptodomex/pycryptodomex-3.9.7.ebuild
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A self-contained cryptographic library for Python"
|
||||
HOMEPAGE="https://www.pycryptodome.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/gmp:0
|
||||
virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#Gentoo pycryptodome patches
|
||||
PATCHES=(
|
||||
"${FILESDIR}/pycryptodome-3.9.4-parallel-make.patch"
|
||||
# https://github.com/Legrandin/pycryptodome/pull/351
|
||||
# "${FILESDIR}/pycryptodome-3.9.4-tests.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# parallel make fixes
|
||||
# Multiple targets were compiling the same file, setuptools doesn't
|
||||
# understand this and you get race conditions where a file gets
|
||||
# overwritten while it's linking. This makes the files look like separate
|
||||
# files so this race won't happen
|
||||
ln src/blowfish.c src/blowfish_eks.c || die
|
||||
ln src/mont.c src/mont_math.c || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test -vv
|
||||
}
|
||||
Loading…
Reference in a new issue