Esempio n. 1
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket,
                         activeRelays)
     self.isSSL = False
     self.tlsSocket = None
     self.packetSize = 32763
     self.session = None
Esempio n. 2
0
    def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
        SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
        self.__NBSession = None
        self.isSMB2 = False
        self.serverDialect = SMB_DIALECT

        # Let's verify the target's server SMB version, will need it for later.
        # We're assuming all connections to the target server use the same SMB version
        for key in activeRelays.keys():
            if activeRelays[key].has_key('protocolClient'):
                self.serverDialect = activeRelays[key]['protocolClient'].session.getDialect()
                self.isSMB2 = activeRelays[key]['protocolClient'].session.getDialect() is not SMB_DIALECT
                break
Esempio n. 3
0
    def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
        SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
        self.__NBSession = None
        self.isSMB2 = False
        self.serverDialect = SMB_DIALECT

        # Let's verify the target's server SMB version, will need it for later.
        # We're assuming all connections to the target server use the same SMB version
        for key in activeRelays.keys():
            if activeRelays[key].has_key('protocolClient'):
                self.serverDialect = activeRelays[key]['protocolClient'].session.getDialect()
                self.isSMB2 = activeRelays[key]['protocolClient'].session.getDialect() is not SMB_DIALECT
                break
Esempio n. 4
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
     self.packetSize = 8192
Esempio n. 5
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
     self.packetSize = 8192
     self.idleState = False
     self.shouldClose = True
Esempio n. 6
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
     self.isSSL = False
     self.tlsSocket = None
     self.packetSize = 32763
     self.session = None
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket,
                         activeRelays)
     self.packetSize = 8192
     self.idleState = False
     self.shouldClose = True
Esempio n. 8
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
     self.packetSize = 8192
Esempio n. 9
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket,
                         activeRelays)
     self.__NBSession = None