This commit is contained in:
Steven Foerster
2021-05-02 22:58:59 -04:00
4 changed files with 20 additions and 7 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
sudo apt-get update
UPDATES=$(sudo apt-get dist-upgrade -s --quiet=2 | grep ^Inst | wc -l)
if [[ "$UPDATES" -ne "0" ]]; then
echo "Please run updates and reboot before installing Mistborn: sudo apt-get update && sudo apt-get -y dist-upgrade"
exit 1;
fi
+2 -2
View File
@@ -23,14 +23,14 @@ import secrets
import random
import string
random_pass = ([secrets.choice("@$!*?-_"),
random_pass = ([secrets.choice("@$!*?-"),
secrets.choice(string.digits),
secrets.choice(string.ascii_lowercase),
secrets.choice(string.ascii_uppercase),
]
+ [secrets.choice(string.ascii_lowercase
+ string.ascii_uppercase
+ "@$!*?-_"
+ "@$!*?-"
+ string.digits) for i in range(12)])
random.shuffle(random_pass)