Ejemplo 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
Ejemplo 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
Ejemplo 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
Ejemplo n.º 4
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
     self.packetSize = 8192
Ejemplo 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
Ejemplo 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
Ejemplo n.º 7
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket,
                         activeRelays)
     self.packetSize = 8192
     self.idleState = False
     self.shouldClose = True
Ejemplo n.º 8
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
     self.packetSize = 8192
Ejemplo n.º 9
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket,
                         activeRelays)
     self.__NBSession = None