Building Custom Kali Live ISO Images

Create a new directory for your custom ISO using the command `mkdir my_custom_kali_iso`. 3. Change into this newly created directory with `cd my_custom_kali_iso`. 4. Download and extract the latest version of Kali Linux Live ISO image from their website by running:
`wget https://cdn.kali.org/kali-images/kali-linux-live-amd64-2019.3a-installer.iso`
`unzip kali-linux-live-amd64-2019.3a-installer.iso`
5. Copy over your custom tools and scripts into the appropriate directories within Kali Live environment using:
`cp /home/yourusername/my_custom_tool /opt` (replace “my_custom_tool” with your actual tool name)
Open up the persistence.conf file for editing by running `nano /mnt/live/persistence/persistence.conf`. Add a new line at the bottom of the file: `/opt/my_custom_tool` (replace “my_custom_tool” with your actual tool name). Save and close the persistence.conf file using Ctrl+X, then Y, followed by Enter. 6. Create a new ISO image that includes custom tools and scripts using this command: `mkisofs -o my_custom_kali_iso.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -R -J -V “My Custom Kali ISO” .`
7. To speed up downloading build dependencies, use apt-cacher-ng:
Install apt-cacher-ng with `sudo apt install -y apt-cacher-ng`
Add a line of configuration inside your chroot using this command in the shell provided by sbuild: `echo ‘Acquire::HTTP::Proxy “http://localhost:3142″;’ > /etc/apt/apt.conf.d/01proxy` (replace 3142 with the port number you chose for apt-cacher-ng)
Exit the shell provided by sbuild using Ctrl+D or exit command. 8. Configure apt-cacher-ng to cache requests and use a mirror close to your location:
Create two files named kali_mirrors and backends_kali in /etc/apt-cacher-ng with the following content (replace “http://your_mirror” with the URL of your preferred Kali Linux mirror):

# This code segment is used to remap the repository for Kali Linux using apt-cacher-ng.
# The "Remap-klxrep" command is used to specify the remapping process.
# The "file:kali_mirrors" and "file:backends_kali" are the two files that will be used for the remapping.
# The "/kali" and "http://your_mirror" are placeholders that will be replaced with the actual URLs of the preferred Kali Linux mirror.
# The purpose of this code is to configure apt-cacher-ng to cache requests and use a mirror close to the user's location.

Add the following line of configuration inside kali.conf (replace “http://your_mirror” with the URL of your preferred Kali Linux mirror): `Remap-klxrep: file:kali_mirrors /kali ; file:backends_kali`
Enable and start apt-cacher-ng using this command: `sudo systemctl enable apt-cacher-ng –now`. 9. Test your custom ISO by burning it onto a blank USB drive using your favorite tool (such as Etcher). Insert the USB drive into your system and reboot to see if everything works correctly!
We recommend Etcher (installer or portable) as it is simpler to use, however Rufus is another popular option with its advanced options. If one does not work for you, consider the other.
Creating a Bootable Kali USB Drive on Windows (Etcher)
1.

SICORPS