{"id":13839774,"url":"https://github.com/mez-0/DecryptRDCManager","last_synced_at":"2025-07-11T06:31:35.030Z","repository":{"id":217994045,"uuid":"299559227","full_name":"mez-0/DecryptRDCManager","owner":"mez-0","description":".NET 4.0 Remote Desktop Manager Password Gatherer","archived":false,"fork":false,"pushed_at":"2020-09-29T10:12:58.000Z","size":448,"stargazers_count":71,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-05T17:24:15.041Z","etag":null,"topics":["execute-assembly","net-framework","post-exploitation"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mez-0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-09-29T08:53:46.000Z","updated_at":"2023-10-29T14:04:47.000Z","dependencies_parsed_at":"2024-01-23T12:18:58.425Z","dependency_job_id":"4e02d97a-a8d0-48ad-915a-a1e7d2b2980a","html_url":"https://github.com/mez-0/DecryptRDCManager","commit_stats":null,"previous_names":["mez-0/decryptrdcmanager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mez-0%2FDecryptRDCManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mez-0%2FDecryptRDCManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mez-0%2FDecryptRDCManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mez-0%2FDecryptRDCManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mez-0","download_url":"https://codeload.github.com/mez-0/DecryptRDCManager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225700089,"owners_count":17510437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["execute-assembly","net-framework","post-exploitation"],"created_at":"2024-08-04T17:00:35.065Z","updated_at":"2024-11-21T08:31:31.881Z","avatar_url":"https://github.com/mez-0.png","language":"C#","readme":"# DecryptRDCManager\r\n\r\n`DecryptRDCManager` is a .NET port of [Decrypt-RDCMan.ps1](https://github.com/nettitude/PoshC2/blob/master/resources/modules/Decrypt-RDCMan.ps1) which was written by [Ben Turner](https://twitter.com/benpturner) and [Rich Hicks](https://twitter.com/scriptmonkey_). This tool will decrypt credentials from [Remote Desktop Manager](https://techcommunity.microsoft.com/t5/exchange-team-blog/introducing-remote-desktop-connection-manager-rdcman-2-2/ba-p/592989) by using the functionality from the [RDCMan.DLL](./DLLs/RDCMan.dll) as done [here](https://smsagent.blog/2017/01/26/decrypting-remote-desktop-connection-manager-passwords-with-powershell/).\r\n\r\nWhen a `.rdg` file is identified, the contents will look something like this:\r\n\r\n```xml\r\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\r\n\u003cRDCMan programVersion=\"2.7\" schemaVersion=\"3\"\u003e\r\n  \u003cfile\u003e\r\n    \u003ccredentialsProfiles\u003e\r\n      \u003ccredentialsProfile inherit=\"None\"\u003e\r\n        \u003cprofileName scope=\"Local\"\u003etestprofile\u003c/profileName\u003e\r\n        \u003cuserName\u003eDEV\\testinguser\u003c/userName\u003e\r\n  \u003cpassword\u003eAQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAlSnFmjEAH0SsyduD82ZosAAAAAACAAAAAAADZgAAwAAAABAAAABimXpySiTYAbe0keAEpZs7AAAAAASAAACgAAAAEAAAACklkBrjv0x63t1+OWBCrCggAAAAvCOw3knvjfpvWFRKJDPI+8ipmOA208hh3EijNOAQG0QUAAAAEX45lKeHqHDty7J9S1/GDw9pcIA=\u003c/password\u003e\r\n        \u003cdomain\u003eDEV\u003c/domain\u003e\r\n      \u003c/credentialsProfile\u003e\r\n    \u003c/credentialsProfiles\u003e\r\n    \u003cproperties\u003e\r\n      \u003cexpanded\u003eTrue\u003c/expanded\u003e\r\n      \u003cname\u003etesting\u003c/name\u003e\r\n    \u003c/properties\u003e\r\n    \u003cserver\u003e\r\n      \u003cproperties\u003e\r\n        \u003cname\u003e192.168.100.102\u003c/name\u003e\r\n      \u003c/properties\u003e\r\n      \u003clogonCredentials inherit=\"None\"\u003e\r\n        \u003cprofileName scope=\"File\"\u003etestprofile\u003c/profileName\u003e\r\n      \u003c/logonCredentials\u003e\r\n    \u003c/server\u003e\r\n  \u003c/file\u003e\r\n  \u003cconnected /\u003e\r\n  \u003cfavorites /\u003e\r\n  \u003crecentlyUsed /\u003e\r\n\u003c/RDCMan\u003e\r\n```\r\n\r\nCredentials can either be stored in `\u003ccredentialsProfile\u003e`, or `\u003clogonCredentials\u003e`. During testing, it was found that `\u003clogonCredentials\u003e` would either fail to decrypt, or decrypt to `0123456789`. However, `\u003ccredentialsProfile\u003e` was identified to be way more reliable.\r\n\r\n## Building\r\n\r\nMake sure the `RDCMan.DLL` reference is added into the solution, and then build it. After building the solution, `ILMerge.exe` it:\r\n\r\n```\r\n.\\ILMerge.exe /out:c:\\DecryptRDCManager.exe .\\DecryptRDCManager\\DecryptRDCManager\\bin\\Debug\\DecryptRDCManager.exe .\\DLLs\\AxMSTSCLib.dll .\\DLLs\\MSTSCLib.dll .\\DLLs\\RDCMan.dll\r\n```\r\n\r\n## Usage\r\n\r\nA path to a `.rdg` can be passed in, or `DecryptRDCManager` will read the following settings file to determine where any `.rdg` files are:\r\n\r\n```\r\n\"C:\\Users\\\u003cusername\u003e\\AppData\\Local\\Microsoft\\Remote Desktop Connection Manager\\RDCMan.settings\"\r\n```\r\n\r\nExample **without path**:\r\n\r\n![Without path](./Images/without-path.PNG)\r\n\r\nExample **with path**:\r\n\r\n![With path](./Images/with-path.PNG)\r\n","funding_links":[],"categories":["C# #","C# (212)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmez-0%2FDecryptRDCManager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmez-0%2FDecryptRDCManager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmez-0%2FDecryptRDCManager/lists"}