def cmd_st(self): passwd = getpass("passwd: ") encrypt = Encryption() if encrypt.check_passwd(passwd): IoControl().print_message("Enter the user shell.") call("/bin/bash") else: IoControl().print_message("Fail to enter the shell.")
def cmd_enable(self): passwd = getpass("password: "******"Enable mode has been activated.") else: Status().login = False IoControl().print_message("Failed to enable mode activated.")