Exemplo n.º 1
0
Arquivo: base.py Projeto: 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.")
Exemplo n.º 2
0
Arquivo: base.py Projeto: 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.")