diff options
-rw-r--r-- | pcr/backdoor-factory/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/backdoor-factory/PKGBUILD b/pcr/backdoor-factory/PKGBUILD new file mode 100644 index 000000000..43b61266c --- /dev/null +++ b/pcr/backdoor-factory/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> + +pkgname='backdoor-factory' +pkgver=3.4.2 +pkgrel=1 +pkgdesc='Patch win32/64 binaries with shellcode' +url="https://github.com/secretsquirrel/the-$pkgname" +arch=('any') +license=('BSD3') +depends=('python2' 'python2-pefile' 'python2-capstone') +source=("the-$pkgname-$pkgver.tar.gz"::"$url/archive/$pkgver.tar.gz") +sha1sums=('SKIP') + +package() { + cd "$srcdir/the-$pkgname-$pkgver" + + mkdir -p "$pkgdir/usr/share/$pkgname/" + mkdir -p "$pkgdir/usr/bin/" + + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" + + rm README.md + + cp -a * "$pkgdir/usr/share/$pkgname" + + cat > "$pkgdir/usr/bin/$pkgname" << EOF +#!/bin/sh +exec python2 /usr/share/backdoor-factory/backdoor.py "\$@" +EOF + + chmod +x "$pkgdir/usr/bin/$pkgname" +} |