Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Using Kali Tools (or other specialized distros) on Other Distros

We know that there are plenty of ways for hackers and pentesters to use Kali's excellent suite of prepackaged tools. There's virtualization, containerization, USB boot, WSL, etc. But one simple way is to download an ISO, mount it, mount the filesystem, copy everything to a directory, and chroot into it.

First of all, download the ISO and mount it to a loop device.

Code
sudo mkdir /mnt/iso
sudo mount -t iso9660 -o loop kali-linux-2024.4-installer-amd64.iso /mnt/iso

Install package for working with compressed filesystems.

Code
sudo apt install squashfs-tools

Mount squashfs.

Code
mkdir /tmp/kali
sudo mount --type="squashfs" --options="loop" --source="/mnt/iso/live/filesystem.squashfs" --target="/tmp/kali"
Copy files from mounted squashfs and preserve permissions.

Code
mkdir ~/rootfs
sudo cp -rp /tmp/kali ~/rootfs

Jail yourself in the chroot.

Code
~/rootfs/kali
sudo mount --bind /dev $dir/dev
sudo mount --bind /proc $dir/proc
sudo mount --bind /sys $dir/sys
sudo chroot $dir

You can now run Kali commands in a kernel virtualized environment.

#XmasOrnament2024


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ChorozonFeb 21, 2025 07:25 AM 0 199 Feb 21, 2025 07:25 AM
Last Post: Chorozon
by bexpr9Jul 31, 2021 09:47 AM 4 485 Jul 31, 2021 09:47 AM
Last Post: 9996
by SIM-4581439Apr 8, 2020 06:21 PM 10 329 Apr 8, 2020 06:21 PM
Last Post: Malthemar