Encrypted Persistence (Automated)

( ) #1

Encrypted Persistence : →

sudo bash EncryptedPersistence.sh

EncryptedPersistence.sh : →


fdisk -l /dev/sdb

echo "Enter Device Name [sdb1, sdb2, etc]: "

read device_name

cryptsetup --verbose --verify-passphrase luksFormat /dev/$device_name

cryptsetup luksOpen /dev/$device_name parrot

mkfs.ext4 -L persistence /dev/mapper/parrot

e2label /dev/mapper/parrot persistence

mkdir -p /mnt/parrot

mount /dev/mapper/parrot /mnt/parrot

echo "/ union" > /mnt/parrot/persistence.conf

umount /dev/mapper/parrot

cryptsetup luksClose /dev/mapper/parrot


Now boot into Encrypted Persistence Mode :smile:

(Amzker Pro Hacker) #2

Error in script

Add if. Else for partition selection

You added fdisk -l , but not giving user to select and auto seoect sdb2

1 Like
( ) #3

Hahahahahhaha @Amzker

You are right in your way but people should use only one USB drive to have their persistence at that moment (two USB not needed to boot) :smile:
You can edit in your way sdb2 sdb3 sdb4 & confirming via gparted

(Automated is better because people knowing in which drive they are making persistence).

Beside as an Instructor I don’t want people’s to be Script Kiddies. They should learn & understand properly about their doing & how to configure things (Because Linux is fun)

Think that people should be smarter in that way :smile:

1 Like
( ) #4

Auto selection gone

Now takes usr input
I didn’t give that before because I personally don’t like script kiddies
Because they can make mistake when typing :smile: