Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions packages/evil-winrm-py/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=evil-winrm-py
pkgver=1.5.0
pkgrel=1
pkgdesc="WinRM shell for Windows and Active Directory pentesting"
arch=('any')
url="https://github.com/adityatelange/evil-winrm-py"
license=('MIT')
groups=('blackarch' 'blackarch-windows')
depends=('python' 'python-pypsrp' 'python-prompt_toolkit' 'python-tqdm')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
optdepends=('python-kerberos: Kerberos authentication support')
source=("evil_winrm_py-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/d8/e6/0f39fbc92ce26afd0ce79acadbacc312c81f3d438d3bf625a03f1a01c474/evil_winrm_py-${pkgver}.tar.gz")
sha256sums=('4f97ee36f236dd6b1af770470a5f844d97a9f42b4efe720b3781094661b161ad')

build() {
cd "${srcdir}/evil_winrm_py-${pkgver}"
python -m build --wheel --no-isolation
}

package() {
cd "${srcdir}/evil_winrm_py-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl

if [[ -f LICENSE ]]; then
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
fi
}