diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fd8ec714a02f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = exploit-education-phoenix-bin + pkgdesc = Phoenix is a set of exploitable binaries. + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/ExploitEducation/Phoenix + arch = x86_64 + license = none + makedepends = unarchiver + noextract = pheonix-amd64.deb + source = pheonix-amd64.deb::https://github.com/ExploitEducation/Phoenix/releases/download/v1.0.0-alpha-3/exploit-education-phoenix_1.0.0-_amd64.deb + md5sums = 69af41617ca188bf425c982a634918d1 + +pkgname = exploit-education-phoenix-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..64b6f6efd538 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: winner <aur.vn4ly@codecoffin.com> +pkgname='exploit-education-phoenix-bin' +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Phoenix is a set of exploitable binaries." +arch=("x86_64") +url="https://github.com/ExploitEducation/Phoenix" +license=('none') +makedepends=('unarchiver') +source=("pheonix-amd64.deb::https://github.com/ExploitEducation/Phoenix/releases/download/v1.0.0-alpha-3/exploit-education-phoenix_1.0.0-_amd64.deb") +noextract=("pheonix-amd64.deb") +md5sums=("69af41617ca188bf425c982a634918d1") + +prepare() { + unar "$srcdir/pheonix-amd64.deb" -d + cd "pheonix-amd64" + unar "data.tar.bz2" -d +} + +package() { + cd "pheonix-amd64/data/opt/phoenix/" + + # Install binaries + binaries=("final-one" + "final-two" "final-zero" + "format-four" "format-one" + "format-three" "format-two" + "format-zero" "heap-one" + "heap-three" "heap-two" + "heap-zero" "net-one" + "net-two" "net-zero" + "stack-five" "stack-four" + "stack-one" "stack-six" + "stack-three" "stack-two" + "stack-zero") + for binary in ${binaries[@]}; do + echo "Installing $binary" + install -Dm755 "amd64/$binary" "$pkgdir/usr/bin/$binary" + done + + # install libraries + install -Dm755 "x86_64-linux-musl/lib/ld-musl-x86_64.so.1" "$pkgdir/opt/phoenix/x86_64-linux-musl/lib/ld-musl-x86_64.so.1" + install -Dm755 "x86_64-linux-musl/lib/libc.so" "$pkgdir/opt/phoenix/x86_64-linux-musl/lib/libc.so" +} |