예제 #1
0
 def __init__(self,
              msgType: ClipboardMessageType,
              msgFlags: ClipboardMessageFlags,
              payload: bytes = b""):
     PDU.__init__(self, payload)
     self.msgType = msgType
     self.msgFlags = msgFlags
예제 #2
0
 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
예제 #3
0
파일: gcc.py 프로젝트: yuraxdrumz/pyrdp
    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
예제 #4
0
    def __init__(self, pduType, payload):
        """
        :type pduType: MCSPDUType
        :type payload: bytes
        """

        PDU.__init__(self, payload)
        self.header = pduType
예제 #5
0
    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
예제 #6
0
 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
예제 #7
0
    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
예제 #8
0
 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
예제 #9
0
 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
예제 #10
0
 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
예제 #11
0
 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
예제 #12
0
 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
예제 #13
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
예제 #14
0
 def __init__(self, header: PlayerMessageType, timestamp: int,
              payload: bytes):
     self.header = header  # Uint16LE
     self.timestamp = timestamp  # Uint64LE
     PDU.__init__(self, payload)
예제 #15
0
 def __init__(self, pduType: MCSPDUType, payload: bytes):
     PDU.__init__(self, payload)
     self.header = pduType
예제 #16
0
 def __init__(self, payload: bytes):
     PDU.__init__(self, payload)
     self.header = 3
예제 #17
0
 def __init__(self, header, events):
     PDU.__init__(self)
     self.header = header
     self.events = events
예제 #18
0
 def __init__(self, length, flags, payload):
     PDU.__init__(self, payload)
     self.length = length
     self.flags = flags
예제 #19
0
 def __init__(self, core, security, network):
     PDU.__init__(self)
     self.core = core
     self.security = security
     self.network = network
예제 #20
0
 def __init__(self, msgType, msgFlags, payload=None):
     PDU.__init__(self, payload)
     self.msgType = msgType
     self.msgFlags = msgFlags
예제 #21
0
 def __init__(self, payload):
     """
     :type payload: bytes
     """
     PDU.__init__(self, payload)
예제 #22
0
파일: security.py 프로젝트: macdaliot/pyrdp
 def __init__(self, header, payload):
     PDU.__init__(self, payload)
     self.header = header
예제 #23
0
파일: connection.py 프로젝트: rmdavy/pyrdp
 def __init__(self, core: ServerCoreData, security: ServerSecurityData,
              network: ServerNetworkData):
     PDU.__init__(self)
     self.coreData = core
     self.securityData = security
     self.networkData = network
예제 #24
0
 def __init__(self, header, flags):
     PDU.__init__(self)
     self.header = header
     self.flags = flags
예제 #25
0
파일: fastpath.py 프로젝트: rmdavy/pyrdp
 def __init__(self, header: int, events: [FastPathEvent]):
     PDU.__init__(self)
     self.header = header
     self.events = events