mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
empire-5.9.1.ebuild
This commit is contained in:
parent
704c92da36
commit
1f10585aa0
12 changed files with 79 additions and 157 deletions
|
|
@ -1,3 +1,2 @@
|
|||
DIST empire-5.7.3.tar.gz 49474189 BLAKE2B 8d4d6cfb5b2b1d27ddacc8bdaea83b269a18906b673546ebc1a4ee076ae66852f747d62ebbd8812dd56838cc446a91747e0a5d9137c70bf09c48a5ccdcb47542 SHA512 dba244554ab3eaf265e942330f86b46a41db830c82c55028e3a37c638a40a406df95350b23bd2312282bdb11e24f0d3ceb241d9cd24542f87bc44d9a48818794
|
||||
DIST empire-5.8.2.tar.gz 49471431 BLAKE2B bd4637384eedb3d5b7221ff5b989f2d388c593dbba926d37c3a3361076450c1b9b588c7eeb979830e75ac3719bf00081e57f860c593b8753b587bf0561f26391 SHA512 65d1ec917692eed8321c21af9849fb98260a7cff541a74c805acc1ce4d5d224d8024de1b118d50f481723c5a4a105e13d84a2a2a3effa765c258eb6205705d85
|
||||
DIST empire-5.8.4.tar.gz 49471626 BLAKE2B 960e8c1809feb95b9c75abbf850c837644c06820a921281e4e00a39a7dcaae21bf9d0426953103aa31e1658dd440a3d3f69cf0eadd4831d8db8fbfe6030b9e1f SHA512 e49cc636161c3371a19d935ea0901371b739abd65576688954eb166a399d0d3299c2a306652bda6f4a69018198a171798ffdebbcf176ebfc119c233c64bb7c47
|
||||
DIST empire-5.9.1.tar.gz 49737985 BLAKE2B 0abf35040728846846c2b272c3f7f56c5c88c1414f90fddbc804dd0f8134a3695168080f5f6e42ca6519b6e404f2e4a603654c7484dd7379d802bb430f09530a SHA512 11e25ee6b8e617d5dcf16a245fa92c2ff6745ce650ff8a585ad9f5223ce95d8faf1738464231c81d3a127ffea4ddbe4d6672eea97f44dead229cd7fc8e38bd06
|
||||
|
|
|
|||
|
|
@ -1,146 +0,0 @@
|
|||
# Copyright 1999-2023 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/docopt-0.6.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/humanize-3.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydantic-1.8.1[${PYTHON_USEDEP}]
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
>=dev-python/fastapi-0.70[${PYTHON_USEDEP}]
|
||||
>=dev-python/uvicorn-0.14.0[${PYTHON_USEDEP}]
|
||||
dev-python/jq[${PYTHON_USEDEP}]
|
||||
>=dev-python/aiofiles-0.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-multipart-0.0.5[${PYTHON_USEDEP}]
|
||||
dev-python/python-jose[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockify-0.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/websockets-10.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyperclip-1.8.2[${PYTHON_USEDEP}]
|
||||
dev-python/pyvnc[${PYTHON_USEDEP}]
|
||||
dev-python/python-socketio[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-2.1.2[${PYTHON_USEDEP}]
|
||||
dev-python/pysecretsocks[${PYTHON_USEDEP}]
|
||||
dev-python/donut-shellcode[${PYTHON_USEDEP}]
|
||||
dev-python/python-obfuscator[${PYTHON_USEDEP}]
|
||||
dev-python/pyinstaller[${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"
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit wrapper python-single-r1
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# 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..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit wrapper python-single-r1
|
||||
|
|
@ -8,4 +8,7 @@
|
|||
<use>
|
||||
<flag name="powershell">Enable a PowerShell Windows agent</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">BC-SECURITY/Empire</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
|
|||
1
dev-python/antlr4-python3-runtime/Manifest
Normal file
1
dev-python/antlr4-python3-runtime/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST antlr4-4.13.1.gh.tar.gz 4164054 BLAKE2B a51b91ef93bd4b540a382f8d4eb2bcd1a2e47a29ab20a601a2fdc6ea3d17f9acb62a4bda1a9383ba1d40853a2346f68fe846d700c3f8ae6c9a0f940ad8c660be SHA512 79ac3cdfc8f2368c647d06aec85d87507629a75527205ff2cbf7d9802989b0c6e6a8fac76148ad101f539c9ef922e431e22ba489f899f847ccc3d3d889bb2b70
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=antlr4-${PV}
|
||||
DESCRIPTION="Python 3 runtime for ANTLR"
|
||||
HOMEPAGE="
|
||||
https://www.antlr.org/
|
||||
https://github.com/antlr/antlr4/
|
||||
https://pypi.org/project/antlr4-python3-runtime/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/antlr/antlr4/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}/runtime/Python3"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" tests/run.py -v || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
16
dev-python/antlr4-python3-runtime/metadata.xml
Normal file
16
dev-python/antlr4-python3-runtime/metadata.xml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">antlr/antlr4</remote-id>
|
||||
<remote-id type="pypi">antlr4-python3-runtime</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
12
dev-python/stix2-patterns/metadata.xml
Normal file
12
dev-python/stix2-patterns/metadata.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">oasis-open/cti-pattern-validator</remote-id>
|
||||
<remote-id type="pypi">stix2-patterns</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
@ -5,7 +5,7 @@ EAPI=8
|
|||
|
||||
PYPI_NO_NORMALIZE=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
|
@ -15,7 +15,6 @@ HOMEPAGE="https://github.com/oasis-open/cti-pattern-validator"
|
|||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
|
|
|
|||
11
dev-python/stix2/metadata.xml
Normal file
11
dev-python/stix2/metadata.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">stix2</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
|
@ -14,7 +14,6 @@ HOMEPAGE="https://oasis-open.github.io/cti-documentation/"
|
|||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
|
|
@ -24,5 +23,3 @@ RDEPEND="
|
|||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
#distutils_enable_tests pytest
|
||||
|
|
|
|||
Loading…
Reference in a new issue