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.
On the first run of the
python.exe remotecache.pyuser will get options as below:
Option 2user can know the current session execution policy and set it to
Bypasswhich executes the
rdpcache.ps1PowerShell script. USing
Option 3user can list the cached binary files which is going to be used to reconstruct PNG files.
Option 4: Starts analyzing cache files and reconstruction process. This option creates a folder in user C drive with a name of
Sensitive information is recovered from these binary files in the form of broken PNG images. Managed to recover
Attacker IP addressand
malicious file names. It also reveals some of the crucial information about attacker activities on a compromised host. For forensics team
timestampis revealed in most of these recovered images.
How do I use this?
- git clone https://github.com/Viralmaniar/Remote-Desktop-Caching-.git
- python.exe remotecache.py