diff --git a/app-exploits/empire/Manifest b/app-exploits/empire/Manifest index a91d7d978..29a016475 100644 --- a/app-exploits/empire/Manifest +++ b/app-exploits/empire/Manifest @@ -1,3 +1,2 @@ -DIST empire-3.0.1.tar.gz 16456045 BLAKE2B 281bad041d9d408699df1f34f3d69e9f4470b08c6bef396ed440bcdbbd8e4e21e7cfc91ea2bff1067b9d6750f89226d43be30c940a66d8adaaac1117572aa20f SHA512 ea0e84e13c522a712c95cbfbf1268f44c1b653bdf3acdcc65e9e66044a917eaa6217d2205859cc51c5240cba27afc3d66584ca5c0e7ee4b84a2c2786cff6715f -DIST empire-3.0.4.tar.gz 8396449 BLAKE2B baaaf563d59d4522aa902fb78c1dfd83eaa1d6cdd0a016d9727348559c29fbe23fab7ec10616b7aeb706d522a7723ae6446a7fe951beb220ba0d028ef1aa7dcd SHA512 a0eb1639cbf8cb0c6761069a414408eec1889b88ba933d4591548ae42366f2a43c16f454a9af0494777df3ed7c42891b7a4ae5bb4473e1692a9b6c11111370ba DIST empire-3.0.5.tar.gz 8396786 BLAKE2B 0e7ed64c79dad4b86749c768969ecb35a7ceb17fa32354c1c35ebfa0575109479d57c0ec6b2625fb680fe5357957ea4fdaf9634aa151324bbae23069bd7fca97 SHA512 99904ec2251398fbd22aebee1b75b69cb51367745254f07d61abfce54f7e7af5c67c40fc4ca98e8d617c69e81a7b1dc1adef22e8838e5f91ad335cd0077be81e +DIST empire-3.0.6.tar.gz 8396860 BLAKE2B 77d18ea0d47b275478b200a783a3928faf675a9b61df21ba917c860f7473e5f3f3aaa6523bb7ff9a9718e478c25350429b54c5f7eb4c1919777f1730f8660919 SHA512 9fde8745b1874499f36e0de5f39cf99b014e56b82e51a00395775e3cdac8c2c9f3fab51427b3d7fce841bddf784059793877df577877dfae42ac46c789d6afcd diff --git a/app-exploits/empire/empire-3.0.1.ebuild b/app-exploits/empire/empire-3.0.1.ebuild deleted file mode 100644 index a6a422770..000000000 --- a/app-exploits/empire/empire-3.0.1.ebuild +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -#The tool supports python2.7 but let upstream to make a proper fix: -#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 )" - -RDEPEND="${PYTHON_DEPS} - dev-python/urllib3[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/python-iptools[${PYTHON_USEDEP}] - dev-python/pydispatcher[${PYTHON_USEDEP}] - dev-python/flask[${PYTHON_USEDEP}] - dev-python/macholib[${PYTHON_USEDEP}] - dev-python/dropbox-sdk[${PYTHON_USEDEP}] - dev-python/pyopenssl[${PYTHON_USEDEP}] - dev-python/pyinstaller[${PYTHON_USEDEP}] - dev-python/zlib_wrapper[${PYTHON_USEDEP}] - dev-python/netifaces[${PYTHON_USEDEP}] - dev-python/m2crypto[${PYTHON_USEDEP}] - dev-python/jinja[${PYTHON_USEDEP}] - dev-python/cryptography[${PYTHON_USEDEP}] - dev-python/pyminifier[${PYTHON_USEDEP}] - dev-python/xlutils[${PYTHON_USEDEP}] - dev-python/pycryptodome[${PYTHON_USEDEP}] - dev-python/pefile[${PYTHON_USEDEP}] - dev-python/simplejson[${PYTHON_USEDEP}] - - dev-python/xlrd[${PYTHON_USEDEP}] - dev-python/xlwt[${PYTHON_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}" - -# sed -i \ -# -e "s|STAGING_KEY, INSTALL_PATH|STAGING_KEY, \"/usr/share/${PN}/\"|" \ -# setup/setup_database.py || die - - # set empty password for database - echo | ${PYTHON} setup/setup_database.py || die - - default -} - -src_install() { - insinto "/usr/share/${PN}" - doins -r data/ lib/ plugins/ setup/ empire - - python_optimize "${D}/usr/share/${PN}/lib" > /dev/null 2>&1 - - 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" - python2 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.example.com" \ - -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 "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-3.0.4-r1.ebuild b/app-exploits/empire/empire-3.0.6.ebuild similarity index 94% rename from app-exploits/empire/empire-3.0.4-r1.ebuild rename to app-exploits/empire/empire-3.0.6.ebuild index de51e9b8e..54cf357d5 100644 --- a/app-exploits/empire/empire-3.0.4-r1.ebuild +++ b/app-exploits/empire/empire-3.0.6.ebuild @@ -56,12 +56,6 @@ pkg_setup() { src_prepare() { python_fix_shebang "${S}" - - # drop it after https://github.com/BC-SECURITY/Empire/pull/75 - sed -i \ - -e "s|hashlib.md5(choice).hexdigest()|hashlib.md5(choice.encode('utf-8')).hexdigest()|" \ - setup/setup_database.py || die - default }