diff --git a/install b/install new file mode 100644 index 0000000..35e5536 --- /dev/null +++ b/install @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +BUILD="build" +ISO="live.iso" + +# REF: https://www.kali.org/get-kali/#kali-live +URI="https://cdimage.kali.org/kali-2025.2/kali-linux-2025.2-live-amd64.iso" + +set -euo pipefail + +echo "[+] Fetching latest Kali live ISO" +mkdir -p "$BUILD" +wget -O "$BUILD/$ISO" "$URI" + +echo "[+] Extracting ISO contents" +mkdir -p "$BUILD/iso" +7z x "$BUILD/$ISO" -o "$BUILD/iso" + +echo "[+] Linking filesystem.squashfs" +ln "$BUILD/filesystem.squashfs" "$BUILD/iso/live/filesystem.squashfs" + +echo "[+] Decompressing filesystem" +mkdir -p "$BUILD/rootfs" +unsquashfs "$BUILD/filsystem.squashfs" -d "$BUILD/rootfs" + +