Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pygpoabuse (& fix python-msldap dependencies) #4371

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
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
47 changes: 47 additions & 0 deletions packages/pygpoabuse/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pygpoabuse
pkgver=20.63db4a4
pkgrel=1
pkgdesc='RCE via GPO scheduled tasks.'
arch=('any')
groups=('blackarch' 'blackarch-windows')
url='https://github.com/Hackndo/pyGPOAbuse'
license=('MIT')
depends=('python' 'impacket' 'python-msldap')
makedepends=('git')
source=("$pkgname::git+$url.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}

package() {
cd $pkgname

install -dm 755 "$pkgdir/usr/bin"
install -dm 755 "$pkgdir/usr/share/$pkgname"

install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md

install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

cp -a "$pkgname/" "$pkgname.py" "$pkgdir/usr/share/$pkgname/"

cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
exec python /usr/share/$pkgname/$pkgname.py "\$@"
EOF

chmod a+x "$pkgdir/usr/bin/$pkgname"
}

12 changes: 6 additions & 6 deletions packages/python-msldap/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
# See COPYING for license details.

pkgname=python-msldap
_pkgname=msldap
_pkgname=${pkgname#python-}
pkgver=0.5.12
pkgrel=1
pkgrel=2
pkgdesc='Python library to play with MS LDAP.'
arch=('any')
url='https://pypi.org/project/msldap/#files'
url='https://github.com/skelsec/msldap'
license=('MIT')
depends=('python' 'python-asn1crypto' 'python-winsspi' 'python-minikerberos'
'python-aiocmd' 'python-asciitree' 'python-asysocks' 'python-winacl'
'python-prompt_toolkit' 'python-tqdm')
depends=('python' 'python-unicrypto' 'python-asyauth' 'python-asysocks' 'python-asn1crypto' 'python-winacl'
'python-prompt_toolkit' 'python-tqdm' 'python-wcwidth' 'python-tabulate')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('d5a1ef4458946e67c73bb79eb6b859a82f5965c2fa3157d682c4e1b024c15bb3d88f74cdf03225b4a0db3ce60f30f1bf3650b539925311d477f084db6f869acf')
Expand All @@ -27,3 +26,4 @@ package() {

python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

Loading