first commit

This commit is contained in:
Roy
2025-06-23 21:19:51 +02:00
commit a4f9ea11f3
69 changed files with 4857 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
PASS=`< /dev/urandom tr -dc A-Za-z0-9'"<>,./?!@#$%^&(){}[]' | head -c8`
oldPassword="Test2001"
newPassword=$PASS
rootdevice="/dev/sda3"
printf '%s\n' "$oldPassword" "$newPassword" "$newPassword" |sudo cryptsetup luksAddKey $rootdevice
printf '%s\n' "$oldPassword" |sudo cryptsetup luksRemoveKey $rootdevice
echo $newPassword