small fix
parent
3cba9c18c1
commit
d6c5157301
|
@ -45,7 +45,7 @@ def run():
|
|||
username = random.choice(config.shell_user_prefixes) + \
|
||||
str(random.randint(0, config.shell_max_accounts))
|
||||
|
||||
plaintext_password = utils.misc.generate_random_string(config.shell_password_length, allowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789")
|
||||
plaintext_password = utils.misc.generate_random_string(config.shell_password_length, chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789")
|
||||
|
||||
hashed_password = shell.run(["bash", "-c", "echo '{}' | openssl passwd -1 -stdin".format(plaintext_password)])
|
||||
hashed_password = hashed_password.output.decode("utf-8").strip()
|
||||
|
|
Loading…
Reference in New Issue