{"id":19418151,"url":"https://github.com/viralmaniar/remote-desktop-caching-","last_synced_at":"2025-04-24T13:34:29.794Z","repository":{"id":39526296,"uuid":"142759940","full_name":"Viralmaniar/Remote-Desktop-Caching-","owner":"Viralmaniar","description":"This tool allows one to recover old RDP (mstsc) session information in the form of broken PNG files. These PNG files allows Red Team member to extract juicy information such as LAPS passwords or any sensitive information on the screen. Blue Team member can reconstruct PNG files to see what an attacker did on a compromised host. It is extremely useful for a forensics team to extract timestamps after an attack on a host to collect evidences and perform further analysis.","archived":false,"fork":false,"pushed_at":"2018-08-04T11:35:52.000Z","size":21,"stargazers_count":209,"open_issues_count":1,"forks_count":57,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-03-15T11:11:03.981Z","etag":null,"topics":["blue-team","blueteam","forensic-analysis","forensics","forensics-investigations","hacking","hacking-attack-tools","hacking-tools","infrastructure-monitoring","internal-pentest","penetration-testing","purpleteam","redteam","redteaming"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Viralmaniar.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}},"created_at":"2018-07-29T12:40:18.000Z","updated_at":"2024-01-24T15:15:52.000Z","dependencies_parsed_at":"2022-08-28T21:12:13.908Z","dependency_job_id":null,"html_url":"https://github.com/Viralmaniar/Remote-Desktop-Caching-","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viralmaniar%2FRemote-Desktop-Caching-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viralmaniar%2FRemote-Desktop-Caching-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viralmaniar%2FRemote-Desktop-Caching-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viralmaniar%2FRemote-Desktop-Caching-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Viralmaniar","download_url":"https://codeload.github.com/Viralmaniar/Remote-Desktop-Caching-/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223954746,"owners_count":17231189,"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":["blue-team","blueteam","forensic-analysis","forensics","forensics-investigations","hacking","hacking-attack-tools","hacking-tools","infrastructure-monitoring","internal-pentest","penetration-testing","purpleteam","redteam","redteaming"],"created_at":"2024-11-10T13:12:50.971Z","updated_at":"2024-11-10T13:12:52.054Z","avatar_url":"https://github.com/Viralmaniar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote-Desktop-Caching-\nThis tool allows one to recover old RDP (mstsc) session information in the form of broken PNG files. These PNG files allows Red Team member to extract juicy information such as LAPS passwords or any sensitive information on the screen. Blue Team member can reconstruct PNG files to see what an attacker did on a compromised host. It is extremely useful for a forensics team to extract timestamps after an attack on a host to collect evidences and perform further analysis.\n\nAny suggestions or ideas for this tool are welcome - just tweet me on [@ManiarViral](https://twitter.com/maniarviral)\n\n# Screenshots\nOn the first run of the `Remote-Desktop-Caching` using `python.exe remotecache.py` user will get options as below:\n![image](https://user-images.githubusercontent.com/3501170/43398352-2e55ef68-944b-11e8-8467-60ab35a38095.png)\n\nUsing `Option 1` and `Option 2` user can know the current session execution policy and set it to `Bypass` which executes the `rdpcache.ps1` PowerShell script. USing `Option 3` user can list the cached binary files which is going to be used to reconstruct PNG files.\n\n![image](https://user-images.githubusercontent.com/3501170/43397595-bada2b14-9448-11e8-8eba-2bc3d0efd853.png)\n\nChoosing `Option 4`: Starts analyzing cache files and reconstruction process. This option creates a folder in user C drive with a name of `Recovered_RDP_Sessions`\n\n![image](https://user-images.githubusercontent.com/3501170/43398692-2c76f718-944c-11e8-8b77-0ed263967e08.png)\n\nSensitive information is recovered from these binary files in the form of broken PNG images. Managed to recover `LAPS password`, `Attacker IP address` and `malicious file names`. It also reveals some of the crucial information about attacker activities on a compromised host. For forensics team `timestamp` is revealed in most of these recovered images. \n\n![image](https://user-images.githubusercontent.com/3501170/43517110-ec957090-95ca-11e8-9d2b-d55fe07fdecf.png)\n\n# How do I use this?\n\u003cpre\u003e\n- git clone https://github.com/Viralmaniar/Remote-Desktop-Caching-.git\n- python.exe remotecache.py\n\u003c/pre\u003e\n\n# Questions?\n\nTwitter: https://twitter.com/maniarviral \u003cbr\u003e\nLinkedIn: https://au.linkedin.com/in/viralmaniar\n\n# Contribution \u0026 License\n\n\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by/4.0/80x15.png\" /\u003e\u003c/a\u003e\u003cbr /\u003eThis work is licensed under a \u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\u003eCreative Commons Attribution 4.0 International License\u003c/a\u003e.\u003c/br\u003e\nWant to contribute? Please fork it and hit up with a pull request.\n\nAny suggestions or ideas for this tool are welcome - just tweet me on [@ManiarViral](https://twitter.com/maniarviral)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviralmaniar%2Fremote-desktop-caching-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviralmaniar%2Fremote-desktop-caching-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviralmaniar%2Fremote-desktop-caching-/lists"}