Skip to content

Commit

Permalink
add adpeas & certi
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj authored and noptrix committed Nov 17, 2024
1 parent 7d7ed2a commit eafeba6
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/adpeas/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=adpeas
pkgver=1.3.0.r12.g58462f3
pkgrel=1
pkgdesc='winPEAS, but for Active Directory'
arch=('any')
groups=('blackarch' 'blackarch-windows')
url='https://github.com/ajm4n/adpeas'
license=('MIT')
depends=('bloodhound' 'certi' 'certipy' 'impacket' 'netexec' 'python' 'python-ldap3' 'python-regex' 'python-termcolor')
makedepends=('git' 'python-setuptools')
source=("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)"
)
}

build() {
cd $pkgname

python setup.py build
}

package() {
cd $pkgname

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

39 changes: 39 additions & 0 deletions packages/certi/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=certi
pkgver=6.6cfa656
pkgrel=1
pkgdesc='Active Directory Certificate Services (ADCS) abuser. impacket copy of Certify.'
arch=('any')
groups=('blackarch' 'blackarch-windows')
url='https://github.com/zer1t0/certi'
license=(AGPL-3.0-only)
depends=('impacket' 'python' 'python-cryptography')
makedepends=('git' 'python-setuptools')
source=("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)"
)
}

build() {
cd "$pkgname"

python setup.py build
}

package() {
cd "$pkgname"

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

0 comments on commit eafeba6

Please sign in to comment.