def __init__(self, serverConfig, targetHost, targetPort = 1433, extendedSecurity=True ): ProtocolClient.__init__(self, serverConfig, targetHost, targetPort, extendedSecurity) self.extendedSecurity = extendedSecurity self.domainIp = None self.machineAccount = None self.machineHashes = None
def __init__(self, serverConfig, target, targetPort=25, extendedSecurity=True): ProtocolClient.__init__(self, serverConfig, target, targetPort, extendedSecurity)
def __init__(self, serverConfig, target, targetPort=None, extendedSecurity=True): ProtocolClient.__init__(self, serverConfig, target, targetPort, extendedSecurity) # TODO: support relaying RPC to different endpoints (e.g. DCOM, SpoolSS) # TODO: create a single LOG interface for ntlmrelayx to provide a user info which message/error to which thread belongs self.endpoint = serverConfig.rpc_mode if self.endpoint == "TSCH": self.endpoint_uuid = tsch.MSRPC_UUID_TSCHS else: raise NotImplementedError("Not implemented!") if self.serverConfig.rpc_use_smb: if self.endpoint == "TSCH": self.stringbinding = "ncacn_np:%s[\\pipe\\atsvc]" % target.netloc else: raise NotImplementedError("Not implemented!") else: LOG.debug( "Connecting to ncacn_ip_tcp:%s[135] to determine %s stringbinding" % (target.netloc, self.endpoint)) self.stringbinding = epm.hept_map(target.netloc, self.endpoint_uuid, protocol='ncacn_ip_tcp') LOG.debug("%s stringbinding is %s" % (self.endpoint, self.stringbinding))
def __init__(self, serverConfig, target, targetPort = 445, extendedSecurity=True ): ProtocolClient.__init__(self, serverConfig, target, targetPort, extendedSecurity) self.extendedSecurity = extendedSecurity self.domainIp = None self.machineAccount = None self.machineHashes = None self.sessionData = {} self.keepAliveHits = 1
def __init__(self, serverConfig, target, targetPort=389, extendedSecurity=True): ProtocolClient.__init__(self, serverConfig, target, targetPort, extendedSecurity) self.extendedSecurity = extendedSecurity self.negotiateMessage = None self.authenticateMessageBlob = None self.server = None
def __init__(self, serverConfig, targetHost, targetPort=1433, extendedSecurity=True): ProtocolClient.__init__(self, serverConfig, targetHost, targetPort, extendedSecurity) self.extendedSecurity = extendedSecurity self.domainIp = None self.machineAccount = None self.machineHashes = None
def __init__(self, serverConfig, target, targetPort=None, extendedSecurity=True): ProtocolClient.__init__(self, serverConfig, target, targetPort, extendedSecurity) self.endpoint = serverConfig.rpc_mode self.endpoint_uuid = drsuapi.MSRPC_UUID_DRSUAPI LOG.debug( "Connecting to ncacn_ip_tcp:%s[135] to determine %s stringbinding" % (target.netloc, self.endpoint)) self.stringbinding = epm.hept_map(target.netloc, self.endpoint_uuid, protocol='ncacn_ip_tcp') LOG.debug("%s stringbinding is %s" % (self.endpoint, self.stringbinding))
def __init__(self, serverConfig, target, targetPort = 25, extendedSecurity=True ): ProtocolClient.__init__(self, serverConfig, target, targetPort, extendedSecurity)
def __init__(self, serverConfig, target, targetPort = 80, extendedSecurity=True ): ProtocolClient.__init__(self, serverConfig, target, targetPort, extendedSecurity) self.extendedSecurity = extendedSecurity self.negotiateMessage = None self.authenticateMessageBlob = None self.server = None