Documente Academic
Documente Profesional
Documente Cultură
KALI LINUX
OFFICIAL DOCUMENTATION
Have a question? Type your keywords here! SEARCH
(parted) print
Follow our 0x04 – Encrypt the partition with LUKS:
Projects
cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3
0x05 – Open the encrypted partition:
https://docs.kali.org/kali-dojo/03-kali-linux-usb-persistence-encryption 1/4
2/8/2018 03 – Kali Linux USB Persistence | Kali Linux
mkfs.ext3 /dev/mapper/my_usb
e2label /dev/mapper/my_usb persistence
0x07 – Mount the partition and create your persistence.conf so changes
persist across reboots:
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
Now your USB stick is ready to plug in and reboot into Live USB Encrypted
Persistence mode.
0x01 – Create an additional, 4th partition which will hold the “work” data. We’ll
give it another 5GB of space.
mkfs.ext3 /dev/sdb4
e2label /dev/sdb4 work
https://docs.kali.org/kali-dojo/03-kali-linux-usb-persistence-encryption 2/4
2/8/2018 03 – Kali Linux USB Persistence | Kali Linux
mkdir -p /mnt/usb
mount /dev/sdb4 /mnt/usb
echo "/ union" > /mnt/usb/persistence.conf
umount /mnt/usb
Boot the computer, and set it to boot from USB. When the boot menu appears, edit
the persistence-label parameter to point to your preferred persistence store!
Version: 1
Cipher name: aes
Cipher mode: xts-plain64
Hash spec: sha1
Payload o set: 4096
MK bits: 256
MK digest: f7 17 b9 a7 9f 7f 9b 21 f2 b9 40 78 c2 97 f5 f0 c2 bb 28 8b
MK salt: f5 a4 80 02 e7 21 0d 7e 5a 64 f4 96 78 a3 15 3c
Backup you LUKS keyslots and encrypt them:
Lets restore the data now. We’ll decrypt our backup of the LUKS keyslots, and
restore them to the encrypted partition:
https://docs.kali.org/kali-dojo/03-kali-linux-usb-persistence-encryption 3/4
2/8/2018 03 – Kali Linux USB Persistence | Kali Linux
Related Articles
English 简体中文 Français Deutsch اﻟﻌرﺑﯾﺔ Português Nederlands Italiano 日本語 Русский
https://docs.kali.org/kali-dojo/03-kali-linux-usb-persistence-encryption 4/4