crackmapexec-5.3.0.ebuild

This commit is contained in:
Anton Bolshakov 2022-07-04 17:25:26 +08:00
parent 3fe3845d17
commit e1cf639318
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
11 changed files with 197 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST aardwolf-0.0.8.tar.gz 973358 BLAKE2B 4e358f489841bae2a9db43674920d5b8eaa52e860288063e981852e6dc92d88cfe20cd8b4fc0700a0ff1065063ed867b82265a77131c8e746b1897e8912b2017 SHA512 ccb37bb479e2a459a6522f3e94775a7fe2d5af34f15a81848ac7c8340aeba12fc0b4bc8ba040d9f39f536441a74197631315b40c26c63a17803cc9c53699a147

View file

@ -0,0 +1,31 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Asynchronous RDP protocol implementation"
HOMEPAGE="https://github.com/skelsec/aardwolf"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND=">=dev-python/minikerberos-0.2.20[${PYTHON_USEDEP}]
>=dev-python/winsspi-0.0.9[${PYTHON_USEDEP}]
>=dev-python/asysocks-0.1.7[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/colorama[${PYTHON_USEDEP}]
dev-python/asn1crypto[${PYTHON_USEDEP}]
dev-python/asn1tools[${PYTHON_USEDEP}]
>=dev-python/pyperclip-1.8.2[${PYTHON_USEDEP}]
>=dev-python/arc4-0.0.4[${PYTHON_USEDEP}]
>=dev-python/pillow-9.0.0[${PYTHON_USEDEP}]
>=dev-python/unicrypto-0.0.4[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

1
dev-python/arc4/Manifest Normal file
View file

@ -0,0 +1 @@
DIST arc4-0.2.0.tar.gz 6421 BLAKE2B e02a8d94327b8c8229913d8ff968bc1bd7071fecd9f6bc8f576854430c04d1e41c520472cc6493a250c127c5403d97f3062a701d421b70d40f0212060454396e SHA512 756337cbe65ffe1223055b8af94733a911fbfd1da4739182596ceb33c03f5532bf51013598ba1dacdbab7eced3aa933759364583ef32d38b7fdbcda297e365eb

View file

@ -0,0 +1,20 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="A small and insanely fast ARCFOUR (RC4) cipher"
HOMEPAGE="https://github.com/manicmaniac/arc4"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND=""
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -0,0 +1 @@
DIST asn1tools-0.163.0.tar.gz 863376 BLAKE2B b5aa1f28092cbb92e4f371f8979fb1a0f3f78123bad70b5e3a83857ceb1f2ca32d04c7551a93d9d1a7f7537cca465ed08abbc46dea064deb1fa48241e0902ba1 SHA512 392b9b639d4d608d2a1e5669895ffae285093a41321039ace7b44c379d49913a0f0d0bfb0157382104c41d30e823c86d53b434d987cf523f36edf9c2ef128e81

View file

@ -0,0 +1,34 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="ASN.1 parsing, encoding and decoding"
HOMEPAGE="
https://github.com/eerimoq/asn1tools
https://pypi.org/project/asn1tools
"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="test"
RDEPEND=">=dev-python/pyparsing-3.0.6[${PYTHON_USEDEP}]
dev-python/prompt_toolkit[${PYTHON_USEDEP}]
dev-python/bitstruct[${PYTHON_USEDEP}]
dev-python/diskcache[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
#test?
# dev-python/bitstruct[${PYTHON_USEDEP}]
# dev-python/diskcache[${PYTHON_USEDEP}]
# dev-python/unittest-or-fail
distutils_enable_tests unittest

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">asn1crypto</remote-id>
<remote-id type="github">wbond/asn1crypto</remote-id>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1 @@
DIST bitstruct-8.15.1.tar.gz 34915 BLAKE2B a1f2e33f6a781e99fac66da3e900b8ddb99e52bd62372fb242899648d59cac25da283824e166811064b6f44d872c80fb39a545cd6dca3e98c0575a0df7c4cc8f SHA512 ca5feccd58e7d97f74c0fa558284daf8bed5b70c24a97a3ba6e0ea9caf9a4e50bd65140329487671dc69cfe09fc6745b8ed68a5518bcc777559d19947e5e94e2

View file

@ -0,0 +1,22 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="conversions between Python values and C bit field structs"
HOMEPAGE="https://github.com/eerimoq/bitstruct"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
RESTRICT="test"
RDEPEND=""
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -1,2 +1,3 @@
DIST crackmapexec-5.1.7.tar.gz 196805 BLAKE2B de9fe124d06825bd9413708fa44ef31f7502e1ac59002d475eef6d6813845fda1886bff3dd3ff8c20b31bb7c54e4a4823a759d41e7be521d83384df1165a97a2 SHA512 3b4be83d30d58908f0828adb3b64aea608eb40ca21a9f9d3f69289f4be976ba9933990de6db46801ec3318ce93879af9ae30ed4bd3bcbbe0cbec748c82af4f11
DIST crackmapexec-5.2.2.tar.gz 683818 BLAKE2B 1e4b49aa6cd76e74304f72cc782e599652ca2c058b9309c54c35f09553df8e95a646c48acc8c5987b28bf746271c042d76bd5a0f6d0c9e9520794043ae7ee07a SHA512 7120f82c4a4247bcd114fa33e9b4f5ce1007a2e93180563fa95d337ce4b127d13cb9f3a2b07005d5cbbbb1cc6d3f38f3214abdccb627cf455d451122bd2f2846
DIST crackmapexec-5.3.0.tar.gz 702985 BLAKE2B a3127db25ef91cafe78ba7ce1472a503de1cfba9ee429c91dfd919878182765fa778aa5950489196edc48e100deb6b4e2aedbb0e78aeca0af18be36b45022a30 SHA512 7e1b82dcf76b1c8840d00bbdc7ba79a2df0bbb274f4e0b7ebb34c062c1ee7a18ad34f6132e35a905b8f8cc4dcddf519426d6febed31c7f357aab78ee0a351649

View file

@ -0,0 +1,72 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
PYTHON_COMPAT=( python3_{9..10} )
inherit python-utils-r1 distutils-r1
DESCRIPTION="A swiss army knife for pentesting Windows/Active Directory environments"
HOMEPAGE="https://github.com/byt3bl33d3r/CrackMapExec/releases"
#SRC_URI="https://mirrors.neusoft.edu.cn/kali/pool/main/c/crackmapexec/crackmapexec_${PV}.orig.tar.xz"
SRC_URI="https://github.com/byt3bl33d3r/CrackMapExec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
SLOT="0"
RESTRICT="test"
#pyproject.toml, [tool.poetry.dependencies]
RDEPEND="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/requests-ntlm[${PYTHON_USEDEP}]
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/lsassy[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
dev-python/msgpack[${PYTHON_USEDEP}]
>=dev-python/neo4j-4.1.1[${PYTHON_USEDEP}]
dev-python/pylnk3[${PYTHON_USEDEP}]
>=dev-python/pypsrp-0.5.0[${PYTHON_USEDEP}]
>=dev-python/paramiko-2.7.2[${PYTHON_USEDEP}]
dev-python/impacket[${PYTHON_USEDEP}]
>=dev-python/dsinternals-1.2.4[${PYTHON_USEDEP}]
dev-python/xmltodict[${PYTHON_USEDEP}]
dev-python/terminaltables[${PYTHON_USEDEP}]
dev-python/aioconsole[${PYTHON_USEDEP}]
dev-python/pywerview[${PYTHON_USEDEP}]
>=dev-python/aardwolf-0.0.8[${PYTHON_USEDEP}]
"
#BDEPEND="
# test? (
# dev-python/flake8[${PYTHON_USEDEP}]
# )
#"
QA_FLAGS_IGNORED="usr/lib.*/python.*/site-packages/cme/data/mimipenguin/.*"
QA_PRESTRIPPED="usr/lib.*/python.*/site-packages/cme/data/mimipenguin/.*"
S="${WORKDIR}/CrackMapExec-${PV}"
src_prepare() {
default
# exclude is not supported by pyproject2setuppy
sed -i '/^exclude/,/^\]/d' pyproject.toml || die
}
#python_test() {
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude cme/data/* || die "Tests fail with ${EPYTHON}"
#}
python_install() {
distutils-r1_python_install
insinto /etc/revdep-rebuild
doins "${FILESDIR}"/50${PN}
python_optimize "./cme/modules/"
insinto "$(python_get_sitedir)/cme/data/"
doins "./cme/data/cme.conf"
insinto "$(python_get_sitedir)/cme/"
doins -r "./cme/modules"
}