How to make a Kali 'Everything' Persistence USB 🐲

0

As you may have seen, there are many articles about how to make a Kali Persistence USB, or a Kali Live USB. It is a pretty simple process, usually a software like Rufus or Etcher can easily make a Bootable USB. But in case of a 'Persistence' drive, it's a little different, Kali Persistence can also be made with the Persistence Partition option on Rufus. However, in some cases, Kali iso images do not support auto Persistence Partition. For an instance, Kali Everything does not support the 'automated' Persistence Partition option in Rufus. It has to be done manually. In this article I will show you how. It is a fairly simple process. Just follow the steps. 

Advantages of Kali Live as told by the Official Kali:

  • It’s non-destructive - it makes no changes to the host system’s hard drive or installed OS, and to go back to normal operations, you simply remove the Kali Live USB drive and restart the system. 
  • It’s portable - you can carry Kali Linux in your pocket and have it running in minutes on an available system. 
  • It’s customizable - you can roll your own custom Kali Linux ISO image and put it onto a USB drive using the same procedures. 
  • It’s potentially persistent - with a bit of extra effort, you can configure your Kali Linux “live” USB drive to have persistent storage, so the data you collect is saved across reboots. 
What you need:
  • An ISO file for Kali Live. In this case, 'Kali Everything'. Get it from https://www.kali.org/get-kali/#kali-installer-images.
  • A tool to make Bootable USB. I recommend using Ethcher, although Rufus is also an option. Use Rufus as an alternative. 
  • A USB/SD card, atleast 16GB. As Kali everything is 11 GB iso. 
Making a Bootable USB is a simple process in Etcher.

Select the USB, the ISO file and click Flash! 



How to make Persistence: 

This is the most important part, follow the steps carefully.




You will need admin access, so you sudo
  1. Boot into the Kali Live USB. Select Kali Live Persistence option.
  2. Open a Terminal and seach for you USB. Type sudo fdisk -l
  3. Search for your USB drive.
  4. Let us assume your USB is at /dev/sdb
  5. we’ll create a new partition to store our persistent data into, starting right above the second Kali Live partition, put an ext4 file system onto it, and create a persistence.conf file on the new partition.
  6. let’s create the new partition in the empty space above our Kali Live partitions. It can be done by -
  7. kali@kali:~$ usb=/dev/sdb kali@kali:~$ kali@kali:~$ sudo fdisk $usb <<< $(printf "n\np\n\n\n\nw")
  8. When fdisk completes, the new partition should have been created at /dev/sdb3; again, this can be verified with the command lsblk
  9. Next, create an ext4 file system in the partition and label it persistence by:. 
  10. kali@kali:~$ usb=/dev/sdb kali@kali:~$ kali@kali:~$ sudo mkfs.ext4 -L persistence ${usb}3
  11. Create a mount point, mount the new partition there, and then create the configuration file to enable persistence. Finally, unmount the partition by:
  12. kali@kali:~$ usb=/dev/sdb kali@kali:~$ kali@kali:~$ sudo mkdir -p /mnt/my_usb kali@kali:~$ sudo mount ${usb}3 /mnt/my_usb kali@kali:~$ echo "/ union" | sudo tee /mnt/my_usb/persistence.conf kali@kali:~$ sudo umount ${usb}3
And it is done.

Post a Comment

0Comments
Post a Comment (0)