def __init__(self, msgType: ClipboardMessageType, msgFlags: ClipboardMessageFlags, payload: bytes = b""): PDU.__init__(self, payload) self.msgType = msgType self.msgFlags = msgFlags
def __init__(self, flags: VirtualChannelPDUFlag, payload: bytes): """ :param flags: PDU flags (CHANNEL_FLAG_FIRST and CHANNEL_FLAG_LAST are added automatically when writing). :param payload: the payload. """ PDU.__init__(self, payload) self.flags = flags
def __init__(self, header: GCCPDUType, payload: bytes): """ :param header: GCC PDU type. :param payload: GCC's payload (so probably some RDP connection data). """ PDU.__init__(self, payload) self.header = header
def __init__(self, pduType, payload): """ :type pduType: MCSPDUType :type payload: bytes """ PDU.__init__(self, payload) self.header = pduType
def __init__(self, header, payload): """ :param header: :param payload: GCC's payload (so probably some RDP connection data). :type payload: bytes """ PDU.__init__(self, payload) self.header = header
def __init__(self, coreData: ClientCoreData, securityData: ClientSecurityData, networkData: ClientNetworkData, clusterData: Optional[ClientClusterData]): PDU.__init__(self) self.coreData = coreData self.securityData = securityData self.networkData = networkData self.clusterData = clusterData
def __init__(self, length, header, payload): """ :type length: int :param header: The PDU type :type payload: bytes """ PDU.__init__(self, payload) self.length = length self.header = header
def __init__(self, codePage: int, flags: int, domain: str, username: str, password: str, alternateShell: str, workingDir: str, extraInfo: ClientExtraInfo): PDU.__init__(self) self.codePage = codePage self.flags = flags self.domain = domain self.username = username self.password = password self.alternateShell = alternateShell self.workingDir = workingDir self.extraInfo = extraInfo
def __init__(self, clientAddressFamily: int, clientAddress: bytes, clientDir: bytes): PDU.__init__(self, b"") self.clientAddressFamily = clientAddressFamily self.clientAddress = clientAddress self.clientDir = clientDir self.clientTimeZone = None self.clientSessionID = None self.performanceFlags = None self.autoReconnectCookie = None self.dynamicDSTTimeZoneKeyName = None self.dynamicDaylightTimeDisabled = None
def __init__(self, type: Optional[int], flags: Optional[int], failureCode: NegotiationFailureCode): """ :param flags: response flags. :param failureCode: error from the server """ PDU.__init__(self) self.type = type self.packetType = NegotiationType.TYPE_RDP_NEG_RSP self.length = 8 self.flags = flags self.failureCode = failureCode
def __init__(self, coreData, securityData, networkData, clusterData): """ :type coreData: ClientCoreData :type securityData: ClientSecurityData :type networkData: ClientNetworkData :type clusterData: ClientClusterData """ PDU.__init__(self) self.coreData = coreData self.securityData = securityData self.networkData = networkData self.clusterData = clusterData
def __init__(self, type: Optional[int], flags: Optional[int], selectedProtocols: Optional[NegotiationProtocols]): """ :param flags: response flags. :param selectedProtocols: transport protocol chosen by the server. """ PDU.__init__(self) self.type = type self.packetType = NegotiationType.TYPE_RDP_NEG_RSP self.length = 8 self.flags = flags self.selectedProtocols = selectedProtocols self.tlsSelected = selectedProtocols is not None and selectedProtocols & NegotiationProtocols.SSL != 0 self.credSspSelected = selectedProtocols is not None and selectedProtocols & NegotiationProtocols.CRED_SSP != 0 self.earlyUserAuthSelected = selectedProtocols is not None and selectedProtocols & NegotiationProtocols.EARLY_USER_AUTHORIZATION_RESULT != 0
def __init__(self, cookie: Optional[bytes], flags: Optional[NegotiationRequestFlags], requestedProtocols: Optional[NegotiationProtocols], correlationFlags: Optional[int] = None, correlationID: Optional[int] = None): """ :param cookie: mstshash identifier or routing token. :param flags: request flags. :param requestedProtocols: transport protocols supported by the client. :param correlationFlags: correlation info flags. :param correlationID: correlation info id. """ PDU.__init__(self) self.cookie = cookie self.flags = flags self.packetType = NegotiationType.TYPE_RDP_NEG_REQ self.requestedProtocols = requestedProtocols self.tlsSupported = requestedProtocols is not None and requestedProtocols & NegotiationProtocols.SSL != 0 self.credSspSupported = requestedProtocols is not None and requestedProtocols & NegotiationProtocols.CRED_SSP != 0 self.earlyUserAuthSupported = requestedProtocols is not None and requestedProtocols & NegotiationProtocols.EARLY_USER_AUTHORIZATION_RESULT != 0 self.correlationFlags = correlationFlags self.correlationID = correlationID
def __init__(self, header: PlayerMessageType, timestamp: int, payload: bytes): self.header = header # Uint16LE self.timestamp = timestamp # Uint64LE PDU.__init__(self, payload)
def __init__(self, pduType: MCSPDUType, payload: bytes): PDU.__init__(self, payload) self.header = pduType
def __init__(self, payload: bytes): PDU.__init__(self, payload) self.header = 3
def __init__(self, header, events): PDU.__init__(self) self.header = header self.events = events
def __init__(self, length, flags, payload): PDU.__init__(self, payload) self.length = length self.flags = flags
def __init__(self, core, security, network): PDU.__init__(self) self.core = core self.security = security self.network = network
def __init__(self, msgType, msgFlags, payload=None): PDU.__init__(self, payload) self.msgType = msgType self.msgFlags = msgFlags
def __init__(self, payload): """ :type payload: bytes """ PDU.__init__(self, payload)
def __init__(self, header, payload): PDU.__init__(self, payload) self.header = header
def __init__(self, core: ServerCoreData, security: ServerSecurityData, network: ServerNetworkData): PDU.__init__(self) self.coreData = core self.securityData = security self.networkData = network
def __init__(self, header, flags): PDU.__init__(self) self.header = header self.flags = flags
def __init__(self, header: int, events: [FastPathEvent]): PDU.__init__(self) self.header = header self.events = events