Encrypted Persistence (Automated)

Encrypted Persistence : →

sudo bash EncryptedPersistence.sh

EncryptedPersistence.sh : →

#!/bin/bash

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

reboot

Now boot into Encrypted Persistence Mode :smile:

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

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

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:

thats inpresive. i make a mistake typing at least 90 percent the time. even double checking. to never make a typing mistake is like a super power. :1st_place_medal:

https://github.com/MithilMajumder/MiniTool-Partition-Wizard-Technician-11 <-- Doesn´t exists