crackmapexec: mask until upstream fixes python3 support, https://github.com/the-useless-one/pywerview/issues/36

This commit is contained in:
blshkv 2020-02-05 18:12:48 +08:00
parent 0c0c2bfc4a
commit 884c22ffb9
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
11 changed files with 189 additions and 26 deletions

View file

@ -1 +1 @@
DIST pylnk-0.2.tar.gz 13562 BLAKE2B 5f0c1ef59161fd2eacbe5945d987c84ffb663eea6e09a4b0f5acf7404ad68e4331dac04308f534ce20d662e9b0bbc706f7049d1915126db32bd99528e344e572 SHA512 cf85c25727171cf599d9bb3d441b7f3cef7081833901653397a62479217c8f7b2eb277ab90bef108d776bbd4ec36cbe1f11efbd7f1c09f03559f6c57272f6e35
DIST pylnk-0.2_p20200105.tar.gz 18774 BLAKE2B da4bb65c28acf9a83d0627d6e33e94a2fd49461436477da4a44c7297ddfa13e72c92f7d7f41579fed6aca4d9572e52fa2982347119fbf79998ce26ada48a2e05 SHA512 c860127a9306fe4b6cbb1092db22e17fb1e097f69f5c817e6d6d775cceea65f7e1be4572d3173b9df528ab8e6821496b977f17964675f1f6755af3eb462a3de1

View file

@ -1,23 +0,0 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Python library for reading and writing Windows shortcut files"
HOMEPAGE="https://sourceforge.net/projects/pylnk/"
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
#SRC_URI="https://github.com/cobrateam/python-htmlentities/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
"
#S="${WORKDIR}/python-${P}"

View file

@ -0,0 +1,29 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Python library for reading and writing Windows shortcut files"
HOMEPAGE="https://sourceforge.net/projects/pylnk/"
#SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
HASH_COMMIT="c0c2f7451d435b64ed8899aa0cc650c817208043"
SRC_URI="https://github.com/strayge/pylnk/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
src_prepare(){
sed -e 's|pylnk3|pylnk|' -i setup.py || die "sed failed"
eapply_user
}

View file

@ -0,0 +1 @@
DIST pywerview-0.2.0.tar.gz 45665 BLAKE2B d77fdf133a50c2f967cd8eb73216524d57da8097e39526f8fb047fec2f948c5661f1469ca237c859e56a91e0a55e965ec493ec86cbac544742eb18e0520f0a1f SHA512 a3346602de5bb429f8475b987c3a1605dbee7a7ac9563cd0ef1412d845fdac48f4e65044068ae8a073bb41cdaa8f01be7730a1e1250b8705f54ce33291735cdc

View file

@ -0,0 +1,31 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
#PYTHON_COMPAT=( python3_{6,7,8} )
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="A Python port of PowerSploit's PowerView"
HOMEPAGE="https://github.com/the-useless-one/pywerview"
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=dev-python/impacket-0.9.16[${PYTHON_USEDEP}]
dev-python/pyasn1[${PYTHON_USEDEP}]
dev-python/pycryptodomex[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
src_prepare() {
# sed -i -e "/pycrypto/d" setup.py || die
sed -i -e '/bs4/d' setup.py || die
eapply_user
}

View file

@ -1 +1,2 @@
DIST splinter-0.11.0.tar.gz 21792 BLAKE2B 3c55a4e7e0706f985111a51babf4335667b60b4d6c94652f084fe2e8e36a82e69d1cf7c8835b4dd780d0081d9542e1b39c42c68a9c16586c591a03a894df8160 SHA512 71731335b57ff45326846540800a4c1e64d9af1be84a4d43e8de2191050a35318e635dd0ab55da5b9a6a8d2b34e1ba41d4dd54f19ca572e40ce3934f252e4f60
DIST splinter-0.13.0.tar.gz 25279 BLAKE2B ef99b64a39596913adfa837c0421b024dd5948e673075cfd9ed5d81a12076c99c7681a5b6e6ca8cf404815b253f1a842f9532ce9a1db22995cab6e55f8a875bc SHA512 a5a2da3ca01acf37b03d4b12f6565f50e50f75234ce884c13d9e9a4eb991849c668808bb45487174526a950b6577a01f1f72221fdcc22ff90d9ad71c4711a291

View file

@ -0,0 +1,27 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7} )
inherit distutils-r1
DESCRIPTION="tool for testing web applications"
HOMEPAGE="https://github.com/cobrateam/splinter"
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
#SRC_URI="https://github.com/cobrateam/python-htmlentities/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=dev-python/selenium-3.141.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
# FIXME:
# extras_require={
# "zope.testbrowser": ["zope.testbrowser>=5.2.4", "lxml>=4.2.4", "cssselect"],
# "django": ["Django>=1.7.11;python_version<'3.0'", "Django>=2.0.6;python_version>'3.3'", "lxml>=2.3.6", "cs
# "flask": ["Flask>=1.0.2", "lxml>=2.3.6", "cssselect"],
# },

View file

@ -0,0 +1,87 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1 git-r3
DESCRIPTION="A swiss army knife for pentesting Windows/Active Directory environments"
HOMEPAGE="https://github.com/byt3bl33d3r/CrackMapExec/releases"
#EGIT_REPO_URI="https://github.com/byt3bl33d3r/CrackMapExec.git"
#python3 support: https://github.com/byt3bl33d3r/CrackMapExec/issues/317
EGIT_REPO_URI="https://github.com/mpgn/CrackMapExec"
EGIT_COMMIT="f34820939f037f7ef25fdcbf035663935f6442fc"
EGIT_BRANCH="python3"
#use system impacket
EGIT_SUBMODULES=('*' '-*impacket*' '-*pywerview' '-*pywinrm')
#EGIT_SUBMODULES=('*' '-*impacket*' '-*pywinrm')
LICENSE="BSD-2"
KEYWORDS="~amd64 ~x86"
IUSE=""
SLOT="0"
RDEPEND="
dev-python/asn1crypto[${PYTHON_USEDEP}]
dev-python/bcrypt[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/cffi[${PYTHON_USEDEP}]
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
virtual/python-enum34[${PYTHON_USEDEP}]
dev-python/gevent[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
virtual/python-ipaddress[${PYTHON_USEDEP}]
dev-python/msgpack[${PYTHON_USEDEP}]
dev-python/netaddr[${PYTHON_USEDEP}]
dev-python/ntlm-auth[${PYTHON_USEDEP}]
dev-python/paramiko[${PYTHON_USEDEP}]
dev-python/pyasn1[${PYTHON_USEDEP}]
dev-python/pycparser[${PYTHON_USEDEP}]
dev-python/pycryptodomex[${PYTHON_USEDEP}]
dev-python/pylnk[${PYTHON_USEDEP}]
dev-python/pynacl[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/requests-ntlm[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/selenium[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/splinter[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
dev-python/terminaltables[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
dev-python/xmltodict[${PYTHON_USEDEP}]
dev-python/impacket[${PYTHON_USEDEP}]
dev-python/pywinrm[${PYTHON_USEDEP}]
dev-python/pywerview[${PYTHON_USEDEP}]
"
#soupsieve==1.8 not in use?
QA_FLAGS_IGNORED="usr/lib.*/python.*/site-packages/cme/data/mimipenguin/.*"
#https://github.com/byt3bl33d3r/CrackMapExec/issues/282
PATCHES=( "${FILESDIR}/setup.patch" )
python_prepare_all() {
# sed -i -e "/pycrypto/d" setup.py || die
sed -i -e '/bs4/d' setup.py || die
sed -i -e 's#msgpack-python#msgpack#' setup.py || die
distutils-r1_python_prepare_all
}
python_install(){
#install data files disabled in setup.patch
rm -r cme/thirdparty/{impacket,pywinrm}
cp -r cme/{data,thirdparty} "${BUILD_DIR}"/lib/cme
distutils-r1_python_install
}

View file

@ -16,12 +16,13 @@ DEPEND="!!<net-analyzer/metasploit-4.14.16"
#TODO add:
#www-apps/BloodHound
#net-analyzer/crackmapexec
PDEPEND="net-analyzer/metasploit
app-exploits/webshells
app-exploits/deathstar
app-exploits/empire
net-analyzer/crackmapexec
net-analyzer/responder
pentoo-full? (

View file

@ -54,7 +54,11 @@ dev-python/pycopy-binascii
=dev-python/gevent-1.2*
#pentoo packages
dev-python/impacket
dev-python/pywerview
dev-python/ldapdomaindump
#Gentoo
~dev-python/pywinrm-0.3.0
~dev-python/requests-credssp-1.0.2
~dev-python/nltk-2.0.1_rc1
=dev-python/pyqwt-5.2.0
@ -303,7 +307,8 @@ dev-python/htmlentities
dev-python/splinter
~dev-python/terminaltables-3.1.0
~dev-python/pylnk-0.2
=dev-python/pylnk-0.2*
=dev-python/pylnk3-0.2*
~dev-python/selenium-3.141.0
# required by net-analyzer/empire

View file

@ -123,3 +123,7 @@ sci-libs/mkl
#python2 only
dev-util/appmon
#dev-python/pywerview is python2 only
#https://github.com/byt3bl33d3r/CrackMapExec/issues/317
net-analyzer/crackmapexec