99.5.4.5.2: fix bug where sha512 option rounds provoke KO (#112)

This commit is contained in:
Thibault Ayanides
2021-08-10 10:30:35 +02:00
committed by GitHub
parent 01c3d1b98c
commit afed5a9dce
3 changed files with 9 additions and 2 deletions

View File

@ -29,4 +29,12 @@ EOF
register_test retvalshouldbe 0
register_test contain "User secaudit has suitable SHA512 hashed password"
run sha512pass /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
chpasswd -c SHA512 -s 1000 <<EOF
secaudit:mypassword
EOF
describe Pass: Found properly hashed password with custom round number
register_test retvalshouldbe 0
register_test contain "User secaudit has suitable SHA512 hashed password"
run sha512pass /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
}