Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (30 sloc) 949 Bytes
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
pkgname=cr3dov3r-git
pkgver=20180922.r45
pkgrel=1
groups=('archstrike' 'archstrike-social-engineering' 'archstrike-recon')
arch=('any')
pkgdesc="Your best friend in credential reuse attacks"
url="https://github.com/D4Vinci/Cr3dOv3r"
license=('MIT')
depends=('python' 'python-pyopenssl' 'python-requests' 'python-mechanicalsoup')
makedepends=('git')
source=("${pkgname}::git+${url}.git")
sha512sums=('SKIP')
pkgver() {
cd ${pkgname}
printf "%s.r%s" "$(git show -s --format=%ci master | sed "s/\ .*//g;s/-//g")" "$(git rev-list --count HEAD)"
}
package() {
cd ${pkgname}
install -dm755 "${pkgdir}/usr/share/${pkgname}"
install -dm755 "${pkgdir}/usr/bin"
cp -a --no-preserve=ownership * "${pkgdir}/usr/share/${pkgname}"
cat > ${pkgdir}/usr/bin/cr3dov3r << EOF
#!/usr/bin/env bash
cd /usr/share/${pkgname}
python Cr3d0v3r.py "\$@"
EOF
chmod 755 "${pkgdir}/usr/bin/cr3dov3r"
}