-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpasswordmaker
60 lines (59 loc) · 3.22 KB
/
passwordmaker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
function passwordmaker()
{
select passwordchoice in "Memorable Passwords" "Large Password Sheet"
do
case "$passwordchoice" in
"Memorable Passwords")
clear
shuf /usr/share/dict/words | head -n4
return
;;
"Large Password Sheet")
clear
if ! dpkg -l | grep -q makepasswd; then sudo aptitude install -Pr makepasswd; fi
clear
echo -e "(This script runs 14 iterations to generate a variety of passwords.\nYou will get 14x the number you enter here. I reccommend you keep the number under 20 to avoid too much lag.)\nHow many passwords?"
read num
echo "Minimum length of each password?"
read minimum
echo "Maximum length?"
read maximum
clear
Numbers="1234567890"
Lowers="qwertyuiopasdfghjklzxcvbnm"
Uppers="QWERTYUIOPASDFGHJKLZXCVBNM"
Symbols="!@#$%^&*();:<>/?"
echo -e "Numbers, Lowercase, Uppercase, Symbols" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Numbers$Lowers$Uppers$Symbols" >> passwordmakerfile
echo -e "\nNumbers, Lowercase, Symbols" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Numbers$Lowers$Symbols" >> passwordmakerfile
echo -e "\nNumbers, Lowercase, Uppercase" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Numbers$Lowers$Uppers" >> passwordmakerfile
echo -e "\nNumbers, Symbols" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Numbers$Symbols" >> passwordmakerfile
echo -e "\nNumbers, Uppercase" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Numbers$Uppers" >> passwordmakerfile
echo -e "\nNumbers, Lowercase" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Numbers$Lowers" >> passwordmakerfile
echo -e "\nNumbers" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Numbers" >> passwordmakerfile
echo -e "\nLowercase, Uppercase, Symbols" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Lowers$Uppers$Symbols" >> passwordmakerfile
echo -e "\nLowercase, Symbols" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Lowers$Symbols" >> passwordmakerfile
echo -e "\nLowercase, Uppercase" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Lowers$Uppers" >> passwordmakerfile
echo -e "\nLowercase" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Lowers" >> passwordmakerfile
echo -e "\nUppercase, Symbols" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Uppers$Symbols" >> passwordmakerfile
echo -e "\nUppercase" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Uppers" >> passwordmakerfile
echo -e "\nSymbols" >> passwordmakerfile
makepasswd --count $num --minchars $minimum --maxchars $maximum --string "$Symbols" >> passwordmakerfile
return
;;
esac
done
}