diff --git a/daemons/shell_accounts.py b/daemons/shell_accounts.py index 2ebda49..8e8303f 100644 --- a/daemons/shell_accounts.py +++ b/daemons/shell_accounts.py @@ -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()