#1
(This post was last modified: 11 January, 2025 - 10:36 PM by firebull. Edited 1 time in total.)
Kali Linux, known initially as BackTrack Linux, is a free and open-source Linux-based operating system geared at advanced penetration testing and security auditing. Kali Linux has hundreds of tools that perform different information security activities, including penetration testing, security research, computer forensics, and reverse engineering. 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

than
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.

 
Clicking the like button will motivate for more threads ❤️