Example #1
0
File: base.py Project: IPOT/PTYSH
    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.")
Example #2
0
File: base.py Project: IPOT/PTYSH
    def cmd_enable(self):
        passwd = getpass("password: "******"Enable mode has been activated.")
        else:
            Status().login = False
            IoControl().print_message("Failed to enable mode activated.")