Пример #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
Пример #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
Пример #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
Пример #4
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
     self.packetSize = 8192
Пример #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
Пример #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
Пример #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
Пример #8
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket, activeRelays)
     self.packetSize = 8192
Пример #9
0
 def __init__(self, targetHost, targetPort, socksSocket, activeRelays):
     SocksRelay.__init__(self, targetHost, targetPort, socksSocket,
                         activeRelays)
     self.__NBSession = None