Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I decode data returned in the Remote Resources URL (webfeed.aspx) of an RDP server?

Tags:

asp.net

rdp

How do I decode the rdweb/feed/webfeed.aspx content from a Microsoft remote desktop(RDP) server?

I am having difficulty locating the encoding of the webfeed.aspx or more specifically https:// RDP url /rdweb/feed/webfeed.aspx url of the RDP client. In Microsoft's RDP client, the data resolves to references to directories and applications that can be used as shortcuts for the RDP connection.

The file that I get appears to be a base64 encoded file. From what I have read, this should be an XML file that describes the resources, but it seems to be compressed or encoded somehow. I am having no issue getting the data. I can read it via a browser (though not understand it) and Microsoft's RDP client is pulling the data appropriately, so the data is good. I need to decode/process the data because I am extending an open source RDP tool to do the same as Microsoft's RDP client.

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

46672D19C141995BFAA3317324E7595B8AF001B09CF315A3668E2335F383079AA7397E6E8ADF56379306F18DCCFFB4A542CC4C8B81609D5E9D738F8347BC0372EB7513DD797EF0BFA921F7D6E2A108C6A12F44712D57D6191FB068AF1733256291BC0BD7429AD585DA9E6ECC3D1380562A091E980D6908E2E0EF4184689329686AD132E2D63945810D93F88ECAEC6A0B9460F23B9ABF229F974D3B32D0D7415CD8EAF1B6B93678718C9E658F0CEDA604D5294FF3458FB2ABD798A668E8E6714939C8115EC00A13354F8EF22563CF65F5C6D053306D4C3276032D045752412BA760C683C5

like image 939
turbogeek Avatar asked Nov 12 '13 22:11

turbogeek


People also ask

What is the RD Web Access URL?

The default URL is https://<server name>/rdweb, where <server name> is the fully qualified domain name of the web server where you installed RD Web Access. The user types their user name and password. Click Sign in.

How do I resolve an RDP problem?

To resolve this problem, determine which application is using the same port as RDP. If the port assignment for that application cannot be changed, change the port assigned to RDP by changing the registry. After you change the registry, you must restart the Remote Desktop Services service.


1 Answers

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 is here.

The resulting connectionXml string should be Resource List Syntax.

like image 105
Rich C Avatar answered Oct 19 '22 20:10

Rich C