add automation script
This commit is contained in:
parent
7afa83f31a
commit
4d0d4c5a54
1 changed files with 26 additions and 0 deletions
26
install
Normal file
26
install
Normal file
|
|
@ -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"
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue