blob: 403ff6244c5d427514737855847fe0b200018602 (
plain)
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
|
diff --git a/scripts/check_passwd b/scripts/check_passwd
index 4a52092..8cb69be 100755
--- a/scripts/check_passwd
+++ b/scripts/check_passwd
@@ -129,7 +129,7 @@ check_passwd_entries()
do
# Check the password hash.
- [ -z "$Tiger_Passwd_Hashes" ] && Tiger_Passwd_Hashes='crypt3|md5|xxxxxxxxxxxxx'
+ [ -z "$Tiger_Passwd_Hashes" ] && Tiger_Passwd_Hashes='crypt3|md5|blowfish|sha256|sha512|xxxxxxxxxxxxx'
eval "case \"$hash\" in
\"\")
message FAIL pass011f \"\" \"Username \\\`$login' has an empty password field.\"
diff --git a/systems/Linux/2/gen_passwd_sets b/systems/Linux/2/gen_passwd_sets
index ec48944..26d73f0 100755
--- a/systems/Linux/2/gen_passwd_sets
+++ b/systems/Linux/2/gen_passwd_sets
@@ -96,9 +96,19 @@ zappasswd()
\$1\$[a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./]\$[a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./][a-zA-Z0-9\./])
passwd="md5"
;;
+ \$2a\$*)
+ passwd="blowfish"
+ ;;
+ \$5\$*)
+ passwd="sha256"
+ ;;
+# For SHA512 passwds starting with $6$ (Linux)
+ \$6\$*)
+ passwd="sha512"
+ ;;
" ") passwd=""
;;
- *|!!)
+ *|!!|!\*)
passwd="*"
;;
esac
|