summaryrefslogtreecommitdiff
path: root/pcr/backdoor-factory/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2017-03-08 13:34:18 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2017-03-08 13:34:18 -0300
commit3e86ffb707b1eed9c0d6fd4c360ad742bcf41e8f (patch)
tree72536432cc4324b29d753adde6dac20bdb8e84bb /pcr/backdoor-factory/PKGBUILD
parent41c85d2f4b0724df0a4252b2ca10faa91bb77d43 (diff)
downloadabslibre-3e86ffb707b1eed9c0d6fd4c360ad742bcf41e8f.tar.gz
abslibre-3e86ffb707b1eed9c0d6fd4c360ad742bcf41e8f.tar.bz2
abslibre-3e86ffb707b1eed9c0d6fd4c360ad742bcf41e8f.zip
backdoor-factory-3.4.2-1: available in [pcr]
Diffstat (limited to 'pcr/backdoor-factory/PKGBUILD')
-rw-r--r--pcr/backdoor-factory/PKGBUILD32
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"
+}