deathstar-20210519.ebuild

This commit is contained in:
Anton Bolshakov 2021-11-22 09:32:36 +08:00
parent 13d0c69d82
commit 1bdee036d5
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
7 changed files with 64 additions and 83 deletions

View file

@ -1,2 +1,2 @@
DIST deathstar-20180722.tar.gz 26736 BLAKE2B f2e09e31744fa8591942922edfa91f248515c15676c0aabacf0290001d4c2ebb142d6d2f14b8d56f5e8733524755f4c331e18a2d7c13600e6d0b342a31b58938 SHA512 f824806d1e90afbc0a9195428dae3a025f2dbe8d2c628820dbeb1a21d122bf37ae7901b20fd0b5ae4aa6453708d7c3cb36053c134e5719d1e1934a1b315c74e2
DIST deathstar-20201217.tar.gz 44220 BLAKE2B ba1e9c295a76201c7987e7759cb3c8ecd2c212f6269ef2fc3392db2ef2cb993fa2af860f29e514f580940b9b02ee7dc777747924e961aad72365b8970bdd337e SHA512 4af3b356e548be04ea03989af7c43e302cf1b2c4ec7c10fedf7d4fb6d426bcfe947bbb42312912505c88cbd0e21705fd41d279bbb048f7fa5450f25ddd58f2b7
DIST deathstar-20210519.tar.gz 44204 BLAKE2B 186951fde53ea132cf6bbe35f478b0e97e2163665e599f29666ce291a58744d4c33a463aea75f668a41a68b45c06210ebec7870a01b45fb712693e638e9a445c SHA512 2029c49432f273fc7534d98114075dca4330d8900835e2d754fc021e7b0844a092a9818389e8d86f58f30206b60991394b7bd3ed222343ebab92522e74a12b2c

View file

@ -1,43 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
inherit python-r1
DESCRIPTION="A tool to gain Domain Admin rights with a push of a button"
HOMEPAGE="https://github.com/byt3bl33d3r/DeathStar"
HASH_COMMIT="04356101ec8e9466bc72f8846fd7d83ccac98ba8"
SRC_URI="https://github.com/byt3bl33d3r/DeathStar/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-3"
SLOT="0"
RDEPEND="${PYTHON_DEPS}
app-exploits/empire
dev-python/requests[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]"
S="${WORKDIR}/DeathStar-${HASH_COMMIT}"
src_prepare() {
sed -i \
-e "s/__version__ = '\(.*\)'/__version__ = '${PV}'/" \
DeathStar.py || die
default
}
src_install() {
python_foreach_impl python_newscript DeathStar.py $PN
dodoc README.md
}
pkg_postinst() {
einfo "\nSee the following URL:"
einfo " * https://byt3bl33d3r.github.io/automating-the-empire-with-the-death-star-getting-domain-admin-with-a-push-of-a-button.html\n"
}

View file

@ -36,6 +36,12 @@ RDEPEND="${PYTHON_DEPS}
S="${WORKDIR}/DeathStar-${HASH_COMMIT}"
src_prepare() {
default
# exclude is not supported by pyproject2setuppy
sed -i '/^exclude/,/^\]/d' pyproject.toml || die
}
#src_prepare() {
# sed -i \
# -e "s/__version__ = '\(.*\)'/__version__ = '${PV}'/" \

View file

@ -0,0 +1,55 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
DESCRIPTION="A tool to gain Domain Admin rights with a push of a button"
HOMEPAGE="https://github.com/byt3bl33d3r/DeathStar"
HASH_COMMIT="f10fdbfeb149d9b5647b397e1ce7fa8ab0d39799"
SRC_URI="https://github.com/byt3bl33d3r/DeathStar/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-3"
SLOT="0"
#requirements.txt
RDEPEND="${PYTHON_DEPS}
app-exploits/empire
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/colorama[${PYTHON_USEDEP}]
dev-python/commonmark[${PYTHON_USEDEP}]
dev-python/h11[${PYTHON_USEDEP}]
dev-python/httpcore[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
dev-python/rfc3986[${PYTHON_USEDEP}]
dev-python/rich[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-httpx[${PYTHON_USEDEP}]
dev-python/rich[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
S="${WORKDIR}/DeathStar-${HASH_COMMIT}"
src_prepare() {
default
# exclude is not supported by pyproject2setuppy
sed -i '/^exclude/,/^\]/d' pyproject.toml || die
}
pkg_postinst() {
einfo "\nSee the following URL:"
einfo " * https://byt3bl33d3r.github.io/automating-the-empire-with-the-death-star-getting-domain-admin-with-a-push-of-a-button.html\n"
}

View file

@ -1 +0,0 @@
DIST rich-9.8.2.tar.gz 14022639 BLAKE2B 75acaea11cead614d6d1a5a7e967cb85a0b5b8e28e5373503b97620a11ea51e6059c51efa0d7922812161520f4578ea26509d1717554a00ca07a163845603145 SHA512 cc4f242f29aa45918c8d866c955735127cda20e34c7b03ee2cd889b023c872b672a7034828f4da737ddc7d6a8a5d867bc26dd88c32861af0133043f371b86ff1

View file

@ -1,38 +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
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1 eutils
DESCRIPTION="Validate configuration and produce human readable error messages"
HOMEPAGE="https://github.com/willmcgugan/rich"
SRC_URI="https://github.com/willmcgugan/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="ipywidgets"
RDEPEND="dev-python/colorama[${PYTHON_USEDEP}]
dev-python/commonmark[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
ipywidgets? ( dev-python/ipywidgets[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}"
distutils_enable_tests pytest
python_prepare_all() {
# Build is done with poetry
rm setup.py || die "rm failed"
distutils-r1_python_prepare_all
}
pkg_postinst() {
optfeature "integration with HTML widgets for Jupyter" dev-python/ipywidgets
}

View file

@ -398,3 +398,5 @@ dev-python/jq ~amd64
#dev-ruby/nokogiri-1.11.4 requires >=dev-libs/libxml2-2.9.12
=dev-python/lxml-4.6.3-r1
=dev-libs/libxml2-2.9.12-r2
=dev-python/rich-10*