Post Exploitationdpapilootingcredentialsmasterkeyswindowspython

dploot

dploot is a Python rewrite of SharpDPAPI that implements DPAPI logic for looting credentials, masterkeys, and other sensitive data from local or remote Windows targets. It supports various actions like decrypting blobs, dumping browser credentials, and triaging machine vaults.

Description

dploot enables security researchers and penetration testers to extract and decrypt DPAPI-protected data from Windows systems. DPAPI (Data Protection API) is used by Windows to encrypt sensitive information such as credentials, certificates, and browser data. This tool replicates the functionality of SharpDPAPI in Python, making it usable in environments without .NET dependencies.

Use cases include post-exploitation scenarios where attackers or red teamers need to loot credentials from domain controllers, user profiles, or remote machines. It can target specific components like Credential Manager, browsers, WiFi profiles, or SCCM data, facilitating privilege escalation or lateral movement.

The tool operates both locally and remotely, fetching necessary masterkeys from targets when required for decryption. It is particularly valuable for analyzing DPAPI blobs without needing Windows-specific binaries.

How It Works

dploot implements the full DPAPI decryption logic from SharpDPAPI and native DPAPI in Python, leveraging libraries like impacket for remote access and cryptography for decryption. It performs actions such as extracting masterkeys from registry hives, decrypting blobs using those keys, and parsing structures like Credential Manager entries or browser cookies. For remote operations, it uses SMB or other protocols via impacket to access files and registry on targets, then applies DPAPI entropy modes (user, machine, or domain backup keys) to recover plaintext data.

Installation

bash
sudo apt install python3-dploot

Flags

-h, --helpshow this help message and exit

Examples

Display the full help message and usage information for dploot
dploot -h
Extract backup keys from a domain controller
dploot backupkey
Decrypt a DPAPI blob, automatically fetching masterkeys from the target if needed
dploot blob
Dump user credentials and cookies saved in browsers from a local or remote target
dploot browser
Dump user certificates from a local or remote target
dploot certificates
Dump user Credential Manager blobs from a local or remote target
dploot credentials
Extract and process user masterkeys for DPAPI decryption
dploot masterkeys
Perform comprehensive triage of user DPAPI data including credentials, vaults, and masterkeys
dploot triage
Updated 2026-04-16kali.org ↗