How to decode the data returned by the remote resource URL (webfeed.aspx) of the RDP server?

How to decode rdweb/feed/webfeed.aspx from Microsoft Remote Desktop Server (RDP)?

I find it hard to find the URL encoding webfeed.aspx or, more specifically, https:// RDP url /rdweb/feed/webfeed.aspx the RDP client. In the Microsoft RDP client, the data resolves links to directories and applications that can be used as shortcuts to RDP connections.

The file I get is a base64 encoded file. From what I read, it should be an XML file describing the resources, but it is compressed or encoded. I have no problem getting the data. I can read it through a browser (although I don’t understand), and the Microsoft RDP client will pull the data accordingly, so the data is good. I need to decode / process the data because I am expanding the open source RDP tool to do the same as the Microsoft RDP client.

Here is an example from a text file from the test server rdweb / feed / webfeed.aspx

46672D19C141995BFAA3317324E7595B8AF001B09CF315A3668E2335F383079AA7397E6E8ADF56379306F18DCCFFB4A542CC4C8B81609D5E9D738F8347BC0372EB7513DD797EF0BFA921F7D6E2A108C6A12F44712D57D6191FB068AF1733256291BC0BD7429AD585DA9E6ECC3D1380562A091E980D6908E2E0EF4184689329686AD132E2D63945810D93F88ECAEC6A0B9460F23B9ABF229F974D3B32D0D7415CD8EAF1B6B93678718C9E658F0CEDA604D5294FF3458FB2ABD798A668E8E6714939C8115EC00A13354F8EF22563CF65F5C6D053306D4C3276032D045752412BA760C683C5

+6
source share
1 answer

Have you tried something like this?

 HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("https://RDPurl/rdweb/feed/webfeed.aspx"); HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse(); string connectionXml; using (StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream())) { connectionXml = streamReader.ReadToEnd(); } 

More detailed code here .

As a result, the connectionXml string should be the syntax of the resource list .

+2
source

Source: https://habr.com/ru/post/957958/


All Articles