From fad3a80d5b04a9616b29ca6bfb6c295b056a4477 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sat, 8 May 2021 19:17:05 +0500 Subject: [PATCH] urandom --- changepassword.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changepassword.sh b/changepassword.sh index d429346..71958dc 100644 --- a/changepassword.sh +++ b/changepassword.sh @@ -82,5 +82,8 @@ if [ "$PASSCHANGED" != "true" ] echo "${red}Failed to change password${reset}" else echo "${lightgreen}Password changed succesfully ${reset}" + OLD_PASSWORD=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 5) + NEW_PASSWORD=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 5) + REPEAT_NEWPASSWORD=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 5) source settings-menu.sh fi