Esempio n. 1
0
 def __init__(self, conn, opts, password="", stop_cb=None, cracked_cb=None):
     CommandConnectClient.__init__(self, conn, opts)
     self.password = password
     self.password_file = "fakeone"
     self.ended = False
     self.stop_cb = stop_cb
     self.cracked_cb = cracked_cb
Esempio n. 2
0
 def __init__(self, conn, opts, password="", stop_cb=None, cracked_cb=None):
     CommandConnectClient.__init__(self, conn, opts)
     self.password = password
     self.password_file = "fakeone"
     self.ended = False
     self.stop_cb = stop_cb
     self.cracked_cb = cracked_cb
Esempio n. 3
0
    def __init__(self, conn, opts):
        CommandConnectClient.__init__(self, conn, opts)

        def check_kicked_out(*args):
            log.error("BUG: illegal command did not get us kicked out: we are still connected!")
            self.quit()

        gobject.timeout_add(5 * 1000, check_kicked_out)
Esempio n. 4
0
    def __init__(self, conn, opts):
        CommandConnectClient.__init__(self, conn, opts)

        def check_connection_timeout(*args):
            log.error("BUG: timeout did not fire: we are still connected!")
            self.quit()

        gobject.timeout_add(20 * 1000, check_connection_timeout)
Esempio n. 5
0
 def __init__(self, conn, opts):
     CommandConnectClient.__init__(self, conn, opts)
     def check_kicked_out(*args):
         if not self._protocol._closed:
             self.bug("illegal command did not get us kicked out: we are still connected!")
         else:
             self.quit()
     gobject.timeout_add(5*1000, check_kicked_out)
Esempio n. 6
0
 def __init__(self, conn, opts):
     CommandConnectClient.__init__(self, conn, opts)
     def check_connection_dead(*args):
         self.send("irrelevant")
     gobject.timeout_add(1000, check_connection_dead)
     def check_connection_timeout(*args):
         log.error("BUG: packet size failsafe did not fire: we are still connected!")
         self.quit()
     gobject.timeout_add(20*1000, check_connection_timeout)
Esempio n. 7
0
    def __init__(self, conn, opts):
        CommandConnectClient.__init__(self, conn, opts)

        def check_kicked_out(*args):
            log.error(
                "BUG: illegal command did not get us kicked out: we are still connected!"
            )
            self.quit()

        gobject.timeout_add(5 * 1000, check_kicked_out)
Esempio n. 8
0
 def quit(self, *args):
     log.info("OK: server correctly terminated the connection")
     CommandConnectClient.quit(self)
Esempio n. 9
0
 def quit(self, *args):
     log.info("OK: server correctly terminated the connection")
     CommandConnectClient.quit(self)
Esempio n. 10
0
 def __init__(self, conn, opts):
     CommandConnectClient.__init__(self, conn, opts)
     def check_connection_timeout(*args):
         log.error("BUG: timeout did not fire: we are still connected!")
         self.quit()
     gobject.timeout_add(20*1000, check_connection_timeout)
Esempio n. 11
0
 def bug(self, msg):
     log.warn("BUG: %s" % msg)
     CommandConnectClient.quit(self, -1)
Esempio n. 12
0
 def send_hello(self, challenge_response=None):
     CommandConnectClient.send_hello(self, challenge_response)
     self._queue_write("PS00000000000006l201234567890123456789")
     gobject.timeout_add(1000, self.try_sending_again)
Esempio n. 13
0
 def make_hello(self, challenge_response=None):
     capabilities = CommandConnectClient.make_hello(self,
                                                    challenge_response)
     capabilities["waste_of_space"] = "\0" * (1024 * 1024)
     return capabilities
Esempio n. 14
0
 def make_hello(self, challenge_response=None):
     capabilities = CommandConnectClient.make_hello(self, challenge_response)
     capabilities["waste_of_space"] = "\0" * (1024*1024)
     return capabilities