Skip to content

Instantly share code, notes, and snippets.

@jpy794
Created March 31, 2025 05:21
Show Gist options
  • Save jpy794/466d416d989513043ae007bc98218875 to your computer and use it in GitHub Desktop.
Save jpy794/466d416d989513043ae007bc98218875 to your computer and use it in GitHub Desktop.
2025-03-29T18:28:54.456888Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:333: Basic Settings Exchange
2025-03-29T18:28:54.456904Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:340: Send ConnectInitial { conference_create_request: ConferenceCreateRequest { gcc_blocks: ClientGccBlocks { core: ClientCoreData { version: RdpVersion(524292), desktop_width: 1024, desktop_height: 768, color_depth: Bpp8, sec_access_sequence: Del, keyboard_layout: 0, client_build: 10, client_name: "wujie-16", keyboard_type: IbmEnhanced, keyboard_subtype: 0, keyboard_functional_keys_count: 12, ime_file_name: "", optional_data: ClientCoreOptionalData { post_beta2_color_depth: Some(Bpp8), client_product_id: Some(1), serial_number: Some(0), high_color_depth: Some(Bpp24), supported_color_depths: Some(SupportedColorDepths(BPP16 | BPP32)), early_capability_flags: Some(ClientEarlyCapabilityFlags(SUPPORT_ERR_INFO_PDU | WANT_32_BPP_SESSION | STRONG_ASYMMETRIC_KEYS | VALID_CONNECTION_TYPE | SUPPORT_SKIP_CHANNELJOIN)), dig_product_id: Some(""), connection_type: Some(Lan), server_selected_protocol: Some(SecurityProtocol(HYBRID_EX)), desktop_physical_width: Some(0), desktop_physical_height: Some(0), desktop_orientation: Some(0), desktop_scale_factor: Some(0), device_scale_factor: Some(0) } }, security: ClientSecurityData { encryption_methods: EncryptionMethod(0x0), ext_encryption_methods: 0 }, network: Some(ClientNetworkData { channels: [ChannelDef { name: ChannelName { inner: [114, 100, 112, 100, 114, 0, 0, 0] }, options: ChannelOptions(COMPRESS_RDP) }, ChannelDef { name: ChannelName { inner: [100, 114, 100, 121, 110, 118, 99, 0] }, options: ChannelOptions(COMPRESS_RDP) }, ChannelDef { name: ChannelName { inner: [114, 100, 112, 115, 110, 100, 0, 0] }, options: ChannelOptions(0x0) }] }), cluster: None, monitor: None, message_channel: None, multi_transport_channel: None, monitor_extended: None } }, calling_domain_selector: [1], called_domain_selector: [1], upward_flag: true, target_parameters: DomainParameters { max_channel_ids: 34, max_user_ids: 2, max_token_ids: 0, num_priorities: 1, min_throughput: 0, max_height: 1, max_mcs_pdu_size: 65535, protocol_version: 2 }, min_parameters: DomainParameters { max_channel_ids: 1, max_user_ids: 1, max_token_ids: 1, num_priorities: 1, min_throughput: 0, max_height: 1, max_mcs_pdu_size: 1056, protocol_version: 2 }, max_parameters: DomainParameters { max_channel_ids: 65535, max_user_ids: 64535, max_token_ids: 65535, num_priorities: 1, min_throughput: 0, max_height: 1, max_mcs_pdu_size: 65535, protocol_version: 2 } }
2025-03-29T18:28:54.457043Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-async/src/framed.rs:253: Wait for PDU connector.state="BasicSettingsExchangeWaitResponse" hint=X224Hint
2025-03-29T18:28:54.466396Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:356: Received ConnectResponse { conference_create_response: ConferenceCreateResponse { user_id: 31219, gcc_blocks: ServerGccBlocks { core: ServerCoreData { version: RdpVersion(524305), optional_data: ServerCoreOptionalData { client_requested_protocols: Some(SecurityProtocol(SSL | HYBRID | HYBRID_EX)), early_capability_flags: Some(ServerEarlyCapabilityFlags(EDGE_ACTIONS_SUPPORTED_V2 | SKIP_CHANNELJOIN_SUPPORTED)) } }, network: ServerNetworkData { channel_ids: [1004, 1005, 1006], io_channel: 1003 }, security: ServerSecurityData { encryption_method: EncryptionMethod(0x0), encryption_level: None, server_random: None, server_cert: [] }, message_channel: None, multi_transport_channel: None } }, called_connect_id: 0, domain_parameters: DomainParameters { max_channel_ids: 34, max_user_ids: 3, max_token_ids: 0, num_priorities: 1, min_throughput: 0, max_height: 1, max_mcs_pdu_size: 65528, protocol_version: 2 } }
2025-03-29T18:28:54.466485Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:379: static_channel_ids=[1004, 1005, 1006] io_channel_id=1003
2025-03-29T18:28:54.466512Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:416: Channel Connection
2025-03-29T18:28:54.466522Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/channel_connection.rs:110: Send ErectDomainPdu { sub_height: 0, sub_interval: 0 }
2025-03-29T18:28:54.466573Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:416: Channel Connection
2025-03-29T18:28:54.466585Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/channel_connection.rs:124: Send AttachUserRequest
2025-03-29T18:28:54.466616Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-async/src/framed.rs:253: Wait for PDU connector.state="ChannelConnection" hint=X224Hint
2025-03-29T18:28:54.515174Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:416: Channel Connection
2025-03-29T18:28:54.515232Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/channel_connection.rs:142: Received AttachUserConfirm { result: 0, initiator_id: 1008 } user_channel_id=1008
2025-03-29T18:28:54.515251Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:449: Secure Settings Exchange
2025-03-29T18:28:54.515281Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:458: Send ClientInfoPdu { security_header: BasicSecurityHeader { flags: BasicSecurityHeaderFlags(INFO_PKT) }, client_info: ClientInfo { credentials: Credentials { username: "ipads", domain: None, .. }, code_page: 0, flags: ClientInfoFlags(MOUSE | DISABLE_CTRL_ALT_DEL | UNICODE | MAXIMIZE_SHELL | LOGON_NOTIFY | ENABLE_WINDOWS_KEY | LOGON_ERRORS | MOUSE_HAS_WHEEL | NO_AUDIO_PLAYBACK | VIDEO_DISABLE), compression_type: K8, alternate_shell: "", work_dir: "", extra_info: ExtendedClientInfo { address_family: AddressFamily(23), address: "::1", dir: "C:\\Windows\\System32\\mstscax.dll", optional_data: ExtendedClientOptionalInfo { timezone: Some(TimezoneInfo { bias: 0, standard_name: "", standard_date: OptionalSystemTime(None), standard_bias: 0, daylight_name: "", daylight_date: OptionalSystemTime(None), daylight_bias: 0 }), session_id: Some(0), performance_flags: Some(PerformanceFlags(DISABLE_FULLWINDOWDRAG | DISABLE_MENUANIMATIONS | ENABLE_FONT_SMOOTHING)), reconnect_cookie: None } } } }
2025-03-29T18:28:54.515519Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-async/src/framed.rs:253: Wait for PDU connector.state="LicensingExchange" hint=X224Hint
2025-03-29T18:28:54.524397Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection.rs:502: Licensing Exchange
2025-03-29T18:28:54.524452Z INFO ThreadId(22) connect_finalize: crates/ironrdp-connector/src/license_exchange.rs:249: Server did not initiate license exchange
2025-03-29T18:28:54.524469Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-async/src/framed.rs:253: Wait for PDU connector.state="CapabilitiesExchange" hint=X224Hint
2025-03-29T18:28:54.568008Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection_activation.rs:98: Capabilities Exchange
2025-03-29T18:28:54.568120Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection_activation.rs:103: Received ServerDemandActive(ServerDemandActive { pdu: DemandActive { source_descriptor: "RDP", capability_sets: [Share([234, 3, 0, 0]), General(General { major_platform_type: MajorPlatformType(0x01-WINDOWS), minor_platform_type: MinorPlatformType(0x03-WINDOWS_NT), protocol_version: 512, extra_flags: GeneralExtraFlags(FASTPATH_OUTPUT_SUPPORTED | NO_BITMAP_COMPRESSION_HDR | LONG_CREDENTIALS_SUPPORTED | AUTORECONNECT_SUPPORTED | ENC_SALTED_CHECKSUM), refresh_rect_support: true, suppress_output_support: true }), VirtualChannel(VirtualChannel { flags: VirtualChannelFlags(COMPRESSION_CLIENT_TO_SERVER_8K), chunk_size: Some(1600) }), ColorCache([6, 0, 0, 0]), Pointer(Pointer { color_pointer_cache_size: 25, pointer_cache_size: 25 }), LargePointer(LargePointer { flags: LargePointerSupportFlags(UP_TO_96X96_PIXELS | UP_TO_384X384_PIXELS) }), Font([1, 0, 0, 0]), Bitmap(Bitmap { pref_bits_per_pix: 32, desktop_width: 1024, desktop_height: 768, desktop_resize_flag: true, drawing_flags: BitmapDrawingFlags(ALLOW_DYNAMIC_COLOR_FIDELITY | ALLOW_COLOR_SUBSAMPLING | ALLOW_SKIP_ALPHA | UNUSED_FLAG) }), BitmapCodecs(BitmapCodecs([Codec { id: 0, property: NsCodec(NsCodec { is_dynamic_fidelity_allowed: true, is_subsampling_allowed: true, color_loss_level: 3 }) }, Codec { id: 0, property: Ignore }])), Order(Order { order_flags: OrderFlags(NEGOTIATE_ORDER_SUPPORT | ZERO_BOUNDS_DELTAS_SUPPORT | COLOR_INDEX_SUPPORT | ORDER_FLAGS_EXTRA_FLAGS), order_support: [1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0], order_support_ex_flags: OrderSupportExFlags(CACHE_BITMAP_REV3_SUPPORT | ALTSEC_FRAME_MARKER_SUPPORT), desktop_save_size: 1000000, text_ansi_code_page: 0 }), BitmapCacheHostSupport([1, 0, 0, 0]), Input(Input { input_flags: InputFlags(SCANCODES | MOUSEX | UNICODE | FASTPATH_INPUT_2 | UNUSED_1 | MOUSE_RELATIVE | TS_MOUSE_HWHEEL | TS_QOE_TIMESTAMPS), keyboard_layout: 0, keyboard_type: None, keyboard_subtype: 0, keyboard_function_key: 0, keyboard_ime_filename: "" }), Rail([255, 0, 0, 0]), WindowList([2, 0, 0, 0, 3, 12, 0]), MultiFragmentUpdate(MultifragmentUpdate { max_request_size: 608299 }), SurfaceCommands(SurfaceCommands { flags: CmdFlags(SET_SURFACE_BITS | FRAME_MARKER | STREAM_SURFACE_BITS) }), FrameAcknowledge(FrameAcknowledge { max_unacknowledged_frame_count: 0 })] } })
2025-03-29T18:28:54.568213Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection_activation.rs:158: Send ClientConfirmActive(ClientConfirmActive { originator_id: 1002, pdu: DemandActive { source_descriptor: "IRONRDP", capability_sets: [MultiFragmentUpdate(MultifragmentUpdate { max_request_size: 608299 }), General(General { major_platform_type: MajorPlatformType(0x04-UNIX), minor_platform_type: MinorPlatformType(0x00-UNSPECIFIED), protocol_version: 512, extra_flags: GeneralExtraFlags(FASTPATH_OUTPUT_SUPPORTED | NO_BITMAP_COMPRESSION_HDR), refresh_rect_support: false, suppress_output_support: false }), Bitmap(Bitmap { pref_bits_per_pix: 32, desktop_width: 1024, desktop_height: 768, desktop_resize_flag: true, drawing_flags: BitmapDrawingFlags(ALLOW_SKIP_ALPHA) }), Order(Order { order_flags: OrderFlags(NEGOTIATE_ORDER_SUPPORT | ZERO_BOUNDS_DELTAS_SUPPORT), order_support: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], order_support_ex_flags: OrderSupportExFlags(0x0), desktop_save_size: 0, text_ansi_code_page: 0 }), BitmapCache(BitmapCache { caches: [CacheEntry { entries: 0, max_cell_size: 0 }, CacheEntry { entries: 0, max_cell_size: 0 }, CacheEntry { entries: 0, max_cell_size: 0 }] }), Input(Input { input_flags: InputFlags(SCANCODES | MOUSEX | FASTPATH_INPUT | UNICODE | FASTPATH_INPUT_2 | UNUSED_1 | MOUSE_RELATIVE | TS_MOUSE_HWHEEL | TS_QOE_TIMESTAMPS), keyboard_layout: 0, keyboard_type: Some(IbmEnhanced), keyboard_subtype: 0, keyboard_function_key: 12, keyboard_ime_filename: "" }), Pointer(Pointer { color_pointer_cache_size: 32, pointer_cache_size: 32 }), Brush(Brush { support_level: Default }), GlyphCache(GlyphCache { glyph_cache: [CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }, CacheDefinition { entries: 0, max_cell_size: 0 }], frag_cache: CacheDefinition { entries: 0, max_cell_size: 0 }, glyph_support_level: None }), OffscreenBitmapCache(OffscreenBitmapCache { is_supported: false, cache_size: 0, cache_entries: 0 }), VirtualChannel(VirtualChannel { flags: VirtualChannelFlags(0x0), chunk_size: Some(0) }), Sound(Sound { flags: SoundFlags(0x0) }), LargePointer(LargePointer { flags: LargePointerSupportFlags(UP_TO_96X96_PIXELS | UP_TO_384X384_PIXELS) }), SurfaceCommands(SurfaceCommands { flags: CmdFlags(SET_SURFACE_BITS | FRAME_MARKER | STREAM_SURFACE_BITS) }), BitmapCodecs(BitmapCodecs([Codec { id: 3, property: RemoteFx(ClientContainer(RfxClientCapsContainer { capture_flags: CaptureFlags(0x0), caps_data: RfxCaps(RfxCapset([RfxICap { flags: RfxICapFlags(0x0), entropy_bits: Rlgr3 }])) })) }])), FrameAcknowledge(FrameAcknowledge { max_unacknowledged_frame_count: 20 })] } })
2025-03-29T18:28:54.568413Z DEBUG ThreadId(22) connect_finalize: crates/ironrdp-connector/src/connection_activation.rs:184: Connection Finalization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment