-
Partition USB to 3 sections (KaliLinux, Persistence, USBStorage)
-
Run Mac Linux USB Loader for KaliLinux partition and install with iso
-
In KaliLinux partition, set 'efi/boot/enterprise.cfg' to this:
entry Kali
family Debian
kernel /live/vmlinuz findiso=/efi/boot/boot.iso boot=live noconfig=sudo
username=root hostname=kali persistence
- Reboot into Kali and format the Persistence partition
- open gparted
- select /dev/sdb
- select the persistence partition
- partition > unmount
- partition > format > ext3
- edit > apply all
- Now time to encrypt the parition. Open terminal and then:
cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3
cryptsetup luksOpen /dev/sdb3 my_usb
mkfs.ext3 -L persistence /dev/mapper/my_usb
e2label /dev/mapper/my_usb persistence
mkdir -p /mnt/my_usb
mount /dev/mapper/my_usb /mnt/my_usb
echo "/ union" > /mnt/my_usb/persistence.conf
umount /dev/mapper/my_usb
cryptsetup luksClose /dev/mapper/my_usb
- Reboot into OSX and edit the line in 'enterprise.cfg' file to this to enable encryption
username=root hostname=kali persistence persistence-encryption=luks
- Reboot into Kali and run
apt-get update && apt-get upgrade