mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 12:30:44 +02:00
crackmapexec-5.1.4.ebuild
This commit is contained in:
parent
f9cd52ca01
commit
0f11192798
18 changed files with 281 additions and 32 deletions
1
dev-python/aioconsole/Manifest
Normal file
1
dev-python/aioconsole/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST aioconsole-0.3.1.tar.gz 14809 BLAKE2B 4b358cd299cc2943c6d9970fb93261cef3896520d712e8fc6816bf81433bebb8c793bfa65cc889b6f168badd450530f9ec5f2383b610f0fba63ca45cb6e0e8c1 SHA512 425a0401aa71efc3f4bb7c8f47bb31f70ab4a5d29d32a1624d3fd035c668a92b16cf63dbb30e08e238b29f1c4e7c5d9da08b8639497adf57f6175ca4ad29437f
|
||||
20
dev-python/aioconsole/aioconsole-0.3.1.ebuild
Normal file
20
dev-python/aioconsole/aioconsole-0.3.1.ebuild
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Asynchronous console and interfaces for asyncio"
|
||||
HOMEPAGE="https://github.com/vxgmichel/aioconsole"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
1
dev-python/gssapi/Manifest
Normal file
1
dev-python/gssapi/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST gssapi-1.6.11.tar.gz 1064371 BLAKE2B f3445ffa6a64bb6807e40024e7fb14f7b82359e4a4f07ceba34044a068c5b841968b46c4c02d5f9e19a48d89f4b975e2acc7e356629553651f21e79d01a96bc3 SHA512 7c80c49d360b8b89ee8e1a63b5ad13a22eac1a93a0066a3acf4c862b3064dac8d5a4cebe5e2e18ebe8d65af1a5ca2a862c982825e886b676bf2d92bc8b105397
|
||||
20
dev-python/gssapi/gssapi-1.6.11.ebuild
Normal file
20
dev-python/gssapi/gssapi-1.6.11.ebuild
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python GSSAPI Wrapper"
|
||||
HOMEPAGE="https://github.com/pythongssapi/python-gssapi"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/decorator[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
|
@ -1 +1,2 @@
|
|||
DIST neo4j-1.7.6.tar.gz 23762 BLAKE2B 20c281217c2a46eac056c53e41be265ae554548210db95b28bbe2162d2e2dbeccb333c654c0887cd92cb99c2514772b711286472da108ee5388e11c6e98e969d SHA512 13cff26077126ab490e230be4fe3240abd9c0baa68a98fdd5dbd040ba225a19da7bdb2bc3751d7c498683684d31bcbd96969dcf41179971f3281da8ddc32c96a
|
||||
DIST neo4j-4.2.0.tar.gz 66975 BLAKE2B 8c365fcf30cdc5d31853c3f21d88fc1515d11175f37ec89b896cd75fe89f6ce1fd5cc38c1198cd6fd03df4b7fc6389f10da7c1e38222cce0023f3bfb2bdfa8d4 SHA512 6cd12176377e7b635339eaf1bc138adc89771bf317e9e370c958753dc29acc7132325511a10d092ef3ed28e005fcf868bdc5dc31c352c6bdfd217ca7056bced8
|
||||
|
|
|
|||
24
dev-python/neo4j/neo4j-4.2.0.ebuild
Normal file
24
dev-python/neo4j/neo4j-4.2.0.ebuild
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Neo4j Bolt driver for Python"
|
||||
HOMEPAGE="https://github.com/neo4j/neo4j-python-driver"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#FIXME ModuleNotFoundError: No module named 'neo4j.bolt
|
||||
#https://github.com/neo4j/neo4j-python-driver/issues/482
|
||||
|
|
@ -1 +1,2 @@
|
|||
DIST pypsrp-0.4.0.tar.gz 94952 BLAKE2B 400f88cdb3166c75ae62a594664b4a612667c18d35a5df2459afce75ba62d952449c631b3a642ac44d5eacd098ac074fc458d0294f2eb139066d8c18e6a8ca68 SHA512 ec70e787d0f206c49582aae0366ae860a11b4deabf8e2998892250ec83c7cf4239c6b1ff7b8e3f8dbf4ae94832c47a5d05a237769531f6b43925c48fa20bc3ec
|
||||
DIST pypsrp-0.5.0.tar.gz 90604 BLAKE2B 09f542dd327ef28d73893fa98a3240817e88994725db5f7c2a92238d5b4e297120ef46f0947ea81d526d8472036b6bc13a4005902bfab68ffe2fce423eb31994 SHA512 ace5de77abc859dd8b8057848e18725b07d483bb67af74a43fc509f5f12103dc02cf71e0f5a65706955e1027e81fc100ebdb33ae70f0e4b75adb7560a03d81b9
|
||||
|
|
|
|||
27
dev-python/pypsrp/pypsrp-0.5.0.ebuild
Normal file
27
dev-python/pypsrp/pypsrp-0.5.0.ebuild
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
#FIXME: Gentoo: add python3.8 to requests-credssp
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="PowerShell Remoting Protocol and WinRM for Python"
|
||||
HOMEPAGE="https://github.com/jborean93/pypsrp"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
#dev-python/requests-credssp doesn't support x86
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="kerberos test +credssp"
|
||||
|
||||
RDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/pyspnego[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
credssp? ( dev-python/requests-credssp[${PYTHON_USEDEP}] )
|
||||
kerberos? ( dev-python/gssapi[${PYTHON_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}"
|
||||
1
dev-python/pyspnego/Manifest
Normal file
1
dev-python/pyspnego/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST pyspnego-0.1.3.tar.gz 94432 BLAKE2B 97e7a48b1dc606c412e068e78f3e49c43ee9460ae272cdbc1be81ed0e0d946c592478b6d6bebb37bee7aae83b76e4eeca885553746bdcd032f620c0e13c7e6be SHA512 abdc6b09d17b50c469c18c59dae66df15a26f7e302fb93bef9c0ece1d964c1bc402faed62db4f8ad9405ffff8b2b7b6c5abebbe5ba5d3d9d879904944ec9c4ab
|
||||
22
dev-python/pyspnego/pyspnego-0.1.3.ebuild
Normal file
22
dev-python/pyspnego/pyspnego-0.1.3.ebuild
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Windows Negotiate Authentication Client and Server"
|
||||
HOMEPAGE="https://github.com/jborean93/pyspnego"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE="kerberos test yaml"
|
||||
|
||||
RDEPEND="dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
kerberos? ( dev-python/gssapi[${PYTHON_USEDEP}] )
|
||||
yaml? ( dev-python/ruamel-yaml[${PYTHON_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST ruamel.yaml-0.16.10.tar.gz 147033 BLAKE2B 35e5b0a1bd5a42ee539e66309dbca64bccd9570da427631d230c77d9cc09dc28637abb787c441b4fe8f8f17d9b6b313607887ce79eb631ce8b265cc18570e8fd SHA512 f124575a5054f993d5826d03aa7a9500a1084c5201be1517be36e587bfc60ea4d13b29dbdb3e62bfbd309fe9992590fd0a5028a43f0fd26a5a5cbc9f3dcf423b
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{6..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="${PN//-/.}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation"
|
||||
HOMEPAGE="https://pypi.org/project/ruamel.yaml/ https://sourceforge.net/p/ruamel-yaml"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc x86"
|
||||
|
||||
RDEPEND="dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]"
|
||||
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install --single-version-externally-managed
|
||||
find "${ED}" -name '*.pth' -delete || die
|
||||
}
|
||||
1
net-analyzer/crackmapexec/Manifest
Normal file
1
net-analyzer/crackmapexec/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST crackmapexec_5.1.4.orig.tar.xz 11065172 BLAKE2B e7cf7a18cfe31baf1203d67d0ddb2ac56d9837dbd53186ec45e11b590e930b2d5b145efb5249593038b9ab1304cfb74ad15c4ec2dd9cd52250908ef253b6c4c9 SHA512 0b45e9951ebe684fc76d307494eece0e4a2991fc5b5e51ac29a7d849f1139cb42aff938b2f33791cc81b97904d40b53238254f0a7d08b9841ebcaeac5049f663
|
||||
56
net-analyzer/crackmapexec/crackmapexec-5.1.4.ebuild
Normal file
56
net-analyzer/crackmapexec/crackmapexec-5.1.4.ebuild
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
|
||||
#pypsrp depends on dev-python/requests-credssp/python3.7 only
|
||||
PYTHON_COMPAT=( python3_7 )
|
||||
inherit 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"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
|
||||
#pyproject.toml, [tool.poetry.dependencies]
|
||||
RDEPEND="
|
||||
dev-python/gevent[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/requests-ntlm[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup:4[${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/xmltodict[${PYTHON_USEDEP}]
|
||||
dev-python/terminaltables[${PYTHON_USEDEP}]
|
||||
dev-python/pywerview[${PYTHON_USEDEP}]
|
||||
dev-python/aioconsole[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/lib.*/python.*/site-packages/cme/data/mimipenguin/.*"
|
||||
QA_PRESTRIPPED="usr/lib.*/python.*/site-packages/cme/data/mimipenguin/.*"
|
||||
|
||||
PATCHES=(
|
||||
#thirdparty: https://github.com/byt3bl33d3r/CrackMapExec/issues/361
|
||||
"${FILESDIR}/5.1.4-remove_thirdparty.patch"
|
||||
#almost debian patch, bs4 -> beautifulsoup4
|
||||
"${FILESDIR}/5.1.4-setup.py.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
insinto /etc/revdep-rebuild
|
||||
doins "${FILESDIR}"/50${PN}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
--- a/cme/__init__.py.orig 2020-11-16 23:49:21.000000000 +0800
|
||||
+++ b/cme/__init__.py 2020-12-01 21:02:00.712642554 +0800
|
||||
@@ -1,8 +1,3 @@
|
||||
import sys
|
||||
import os
|
||||
import cme
|
||||
-
|
||||
-thirdparty_modules = os.path.join(os.path.dirname(cme.__file__), 'thirdparty')
|
||||
-
|
||||
-for module in os.listdir(thirdparty_modules):
|
||||
- sys.path.insert(0, os.path.join(thirdparty_modules, module))
|
||||
91
net-analyzer/crackmapexec/files/5.1.4-setup.py.patch
Normal file
91
net-analyzer/crackmapexec/files/5.1.4-setup.py.patch
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
From: Sophie Brun <sophie@freexian.com>
|
||||
Date: Fri, 17 Jan 2020 17:34:20 +0100
|
||||
Subject: Reintroduce setup.py (no poetry in Kali) and MANIFEST.in
|
||||
|
||||
Forwarded: not-needed
|
||||
|
||||
Last-Update: 2020-11-30
|
||||
---
|
||||
MANIFEST.in | 23 +++++++++++++++++++++++
|
||||
setup.py | 42 ++++++++++++++++++++++++++++++++++++++++++
|
||||
2 files changed, 65 insertions(+)
|
||||
create mode 100755 MANIFEST.in
|
||||
create mode 100755 setup.py
|
||||
|
||||
diff --git a/MANIFEST.in b/MANIFEST.in
|
||||
new file mode 100755
|
||||
index 0000000..dbcb1da
|
||||
--- /dev/null
|
||||
+++ b/MANIFEST.in
|
||||
@@ -0,0 +1,23 @@
|
||||
+recursive-include cme/data *
|
||||
+recursive-include cme/modules *
|
||||
+recursive-include cme/thirdparty *
|
||||
+prune cme/data/powersploit/Tests
|
||||
+prune cme/data/powersploit/CodeExecution/Invoke-ReflectivePEInjection_Resources
|
||||
+prune cme/data/powersploit/Exfiltration/LogonUser
|
||||
+prune cme/data/powersploit/Exfiltration/NTFSParser
|
||||
+prune cme/data/powersploit/Recon/Dictionaries
|
||||
+prune cme/data/invoke-vnc/vncdll
|
||||
+prune cme/data/invoke-vnc/winvnc
|
||||
+prune cme/data/invoke-vnc/ReflectiveDLLInjection
|
||||
+recursive-exclude cme/data/invoke-vnc *.py *.bat *.msbuild *.sln pebytes.ps1
|
||||
+prune cme/data/RID-Hijacking/modules
|
||||
+prune cme/data/RID-Hijacking/slides
|
||||
+prune cme/data/netripper/DLL
|
||||
+prune cme/data/netripper/Metasploit
|
||||
+prune cme/data/netripper/Release
|
||||
+prune cme/data/netripper/NetRipper
|
||||
+prune cme/data/netripper/minhook
|
||||
+prune cme/data/netripper/x64
|
||||
+prune cme/data/netripper/Win32
|
||||
+recursive-exclude cme/data/netripper *.pdf *.sln
|
||||
+recursive-exclude cme/data/ LICENSE* *.md .git*
|
||||
diff --git a/setup.py b/setup.py
|
||||
new file mode 100755
|
||||
index 0000000..3a5dc1b
|
||||
--- /dev/null
|
||||
+++ b/setup.py
|
||||
@@ -0,0 +1,42 @@
|
||||
+#!/usr/bin/env python3
|
||||
+
|
||||
+from setuptools import setup, find_packages
|
||||
+
|
||||
+setup(name='crackmapexec',
|
||||
+ version='5.1.4dev',
|
||||
+ description='A swiss army knife for pentesting networks',
|
||||
+ classifiers=[
|
||||
+ 'Environment :: Console',
|
||||
+ 'License :: OSI Approved :: BSD License',
|
||||
+ 'Programming Language :: Python :: 3',
|
||||
+ 'Topic :: Security',
|
||||
+ ],
|
||||
+ keywords='pentesting security windows active-directory networks',
|
||||
+ url='http://github.com/byt3bl33d3r/CrackMapExec',
|
||||
+ author='byt3bl33d3r',
|
||||
+ author_email='byt3bl33d3r@pm.com>',
|
||||
+ license='BSD-2-clause',
|
||||
+ packages=find_packages(include=[
|
||||
+ "cme", "cme.*"
|
||||
+ ]),
|
||||
+ install_requires=[
|
||||
+ "requests>=2.9.1",
|
||||
+ "requests-ntlm>=0.3.0",
|
||||
+ "beautifulsoup4>=0.0.1",
|
||||
+ "lsassy>=2.1.2",
|
||||
+ "termcolor>=1.1.0",
|
||||
+ "msgpack>=1.0.0",
|
||||
+ "neo4j>=4.1.1",
|
||||
+ "pylnk3>=0.3.0",
|
||||
+ "pypsrp>=0.5.0",
|
||||
+ "paramiko>=2.7.2",
|
||||
+ "impacket>=0.9.21",
|
||||
+ "xmltodict>=0.12.0",
|
||||
+ "terminaltables>=3.1.0",
|
||||
+ "aioconsole>=0.3.1",
|
||||
+ ],
|
||||
+ entry_points = {
|
||||
+ 'console_scripts': ['crackmapexec=cme.crackmapexec:main', 'cmedb=cme.cmedb:main'],
|
||||
+ },
|
||||
+ include_package_data=True,
|
||||
+ zip_safe=False)
|
||||
|
|
@ -9,3 +9,5 @@ dev-db/sqlitebrowser
|
|||
|
||||
~dev-db/themole-0.3
|
||||
~dev-db/sqlsus-0.7.2
|
||||
|
||||
dev-db/neo4j-community
|
||||
|
|
|
|||
|
|
@ -49,12 +49,11 @@ dev-python/pycopy-binascii
|
|||
#required by net-analyzer/crackmapexec
|
||||
#pentoo packages
|
||||
dev-python/impacket
|
||||
dev-python/neo4j
|
||||
dev-python/pypsrp
|
||||
dev-python/lsassy
|
||||
dev-python/neobolt
|
||||
dev-python/neotime
|
||||
dev-python/pywerview
|
||||
#Gentoo
|
||||
~dev-python/paramiko-2.7.2
|
||||
|
||||
############ Gentoo unstable ======================
|
||||
=dev-python/pycryptodomex-3.9*
|
||||
|
|
|
|||
Loading…
Reference in a new issue