From 4d0d4c5a546834b8e95ca73e483a00055f2329fb Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Thu, 14 Aug 2025 22:03:52 +1000 Subject: [PATCH] add automation script --- install | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 install 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" + +