diff --git a/app-exploits/empire/Manifest b/app-exploits/empire/Manifest index 94df7fe1e..6801148f5 100644 --- a/app-exploits/empire/Manifest +++ b/app-exploits/empire/Manifest @@ -1,2 +1 @@ -DIST empire-4.0.1.tar.gz 34310554 BLAKE2B 3eb2a3d4e3b95cd9e8cf525e70d2ef829fdf9ffab61c130e68feed74099c9112864c1369f127e020dc8ee26b6c60ab93d5a06632a9697b5bff0c05bb5fe6ab71 SHA512 8e1497a458c4fe3ec47bcf82082f8cc4b2d4a56f730c08cf2bf29dce00ea26689bc84c7c6bf2d6bc75bfa25f944ffd14ab66e58dae861e636c447b8aa29b80fb -DIST empire-4.0.2.tar.gz 34309488 BLAKE2B 977088ccf565563b5f93991d0f29fd9109ea0a6ff9d2311f3dc2c9fcc360f04d4478ceb2d3af3e529950237bd1fff90f4a6c9e3060884dd5fdada18c79c7ce42 SHA512 fb5d0d184427df200d830ad7ba6ee21cb89b80ed30aa7f47e6e0a91879dd8023b3c919e4eb9a52945f2d79c55e7dd23c02fe66db170fe1047e3be7edf76f4f37 +DIST empire-4.1.3.tar.gz 35940809 BLAKE2B 986a06305fd3a1e02b0ead29c9c469757d57fd260b071dda45f9fe16628619e15562da4eccfe539c8474f99c44a37bafb918cbca3a493aa1a9ec2702374d82ac SHA512 fa3e96fa489be892e8bb5ec801931ccb163c308a8153e646a1459aca8a1e009a8dfd85e5702f7fc2deac8c302bf2ec10b94d040a282eb2d2946ef4b8154f3584 diff --git a/app-exploits/empire/empire-4.0.2.ebuild b/app-exploits/empire/empire-4.0.2.ebuild deleted file mode 100644 index acc066c4e..000000000 --- a/app-exploits/empire/empire-4.0.2.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_USE_SETUPTOOLS=pyproject.toml -#https://github.com/BC-SECURITY/Empire/issues/196 -PYTHON_COMPAT=( python3_{8..9} ) -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? ( !x86 ) - ${PYTHON_REQUIRED_USE}" - -# waiting for the upstream -# https://bugs.gentoo.org/684734 -# do we need Poetry? -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/jinja[${PYTHON_MULTI_USEDEP}] - dev-python/pyminifier[${PYTHON_MULTI_USEDEP}] - dev-python/xlutils[${PYTHON_MULTI_USEDEP}] - dev-python/pefile[${PYTHON_MULTI_USEDEP}] - dev-python/bcrypt[${PYTHON_MULTI_USEDEP}] - dev-python/pyparsing[${PYTHON_MULTI_USEDEP}] - dev-python/pymysql[${PYTHON_MULTI_USEDEP}] - dev-python/sqlalchemy[${PYTHON_MULTI_USEDEP}] - dev-python/pyyaml[${PYTHON_MULTI_USEDEP}] - dev-python/sqlalchemy_utc[${PYTHON_MULTI_USEDEP}] - >=dev-python/prompt_toolkit-3.0.9[${PYTHON_MULTI_USEDEP}] - >=dev-python/terminaltables-3.1.0[${PYTHON_MULTI_USEDEP}] - >=dev-python/docopt-0.6.2[${PYTHON_MULTI_USEDEP}] - >=dev-python/humanize-3.2.0[${PYTHON_MULTI_USEDEP}] - >=dev-python/pydantic-1.8.1[${PYTHON_MULTI_USEDEP}] - dev-python/pycryptodome[${PYTHON_MULTI_USEDEP}] - dev-python/cryptography[${PYTHON_MULTI_USEDEP}] - dev-python/flask-socketio[${PYTHON_MULTI_USEDEP}] - dev-python/python-socketio[${PYTHON_MULTI_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 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" -} diff --git a/app-exploits/empire/empire-4.0.1.ebuild b/app-exploits/empire/empire-4.1.3.ebuild similarity index 96% rename from app-exploits/empire/empire-4.0.1.ebuild rename to app-exploits/empire/empire-4.1.3.ebuild index acc066c4e..4391945b3 100644 --- a/app-exploits/empire/empire-4.0.1.ebuild +++ b/app-exploits/empire/empire-4.1.3.ebuild @@ -56,6 +56,7 @@ RDEPEND="${PYTHON_DEPS} dev-python/cryptography[${PYTHON_MULTI_USEDEP}] dev-python/flask-socketio[${PYTHON_MULTI_USEDEP}] dev-python/python-socketio[${PYTHON_MULTI_USEDEP}] + dev-python/jq[${PYTHON_MULTI_USEDEP}] ') powershell? ( !x86? ( app-shells/pwsh-bin ) ) @@ -78,12 +79,12 @@ src_prepare() { #https://github.com/BC-SECURITY/Empire/issues/39 src_install() { insinto "/usr/share/${PN}" - doins -r setup/ empire + doins -r empire/ empire.py - python_optimize "${D}/usr/share/${PN}/lib" +# python_optimize "${D}/usr/share/${PN}/lib" make_wrapper $PN \ - "${PYTHON} /usr/share/${PN}/empire" \ + "${PYTHON} /usr/share/${PN}/empire.py" \ "/usr/share/${PN}" dodoc README.md Dockerfile changelog diff --git a/profiles/pentoo/base/package.accept_keywords/dev-python b/profiles/pentoo/base/package.accept_keywords/dev-python index 7958076a6..afa7d50cf 100644 --- a/profiles/pentoo/base/package.accept_keywords/dev-python +++ b/profiles/pentoo/base/package.accept_keywords/dev-python @@ -403,6 +403,7 @@ app-admin/opensnitch #empire =dev-python/python-socketio-5* =dev-python/python-engineio-4* +=dev-python/jq-1* #objection =dev-python/semver-2* diff --git a/scripts/python_dependencies.py b/scripts/python_dependencies.py index 138149a10..6ea31980f 100755 --- a/scripts/python_dependencies.py +++ b/scripts/python_dependencies.py @@ -23,6 +23,7 @@ def portage_mapping(search): "dev-python/bs4": "dev-python/beautifulsoup4", "dev-python/capstone": "dev-libs/capstone[python]", "dev-python/colored_traceback": "dev-python/colored-traceback", + "dev-python/iptools": "dev-python/python-iptools", "dev-python/Django": "dev-python/django", "dev-python/flask-BabelEx": "dev-python/flask-babelex", "dev-python/Flask": "dev-python/flask", @@ -41,7 +42,6 @@ def portage_mapping(search): "dev-python/pyOpenSSL": "dev-python/pyopenssl", "dev-python/pypykatz": "app-exploits/pypykatz", "dev-python/pysocks": "dev-python/PySocks", - "dev-python/python-iptools": "dev-python/iptools", "dev-python/PyMySQL": "dev-python/pymysql", "dev-python/PyYAML": "dev-python/pyyaml", "dev-python/flask-SocketIO": "dev-python/flask-socketio",