diff options
author | winwinner | 2023-09-16 17:05:26 +0100 |
---|---|---|
committer | winwinner | 2023-09-16 17:05:26 +0100 |
commit | d89f0e77c17ee11cdad2d070e0f112a64e62fedb (patch) | |
tree | 915d4df89561501293a9f78a1cf1ee6b576f8738 /PKGBUILD | |
download | aur-d89f0e77c17ee11cdad2d070e0f112a64e62fedb.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
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" +} |