Skip to content

dpapi.py QoL improvements#2167

Open
Aptimex wants to merge 3 commits into
fortra:masterfrom
Aptimex:dpapi-unprotect
Open

dpapi.py QoL improvements#2167
Aptimex wants to merge 3 commits into
fortra:masterfrom
Aptimex:dpapi-unprotect

Conversation

@Aptimex
Copy link
Copy Markdown

@Aptimex Aptimex commented Apr 3, 2026

Three improvements:

  • The unprotect command now auto-detects whether the supplied key is a "plaintext" key or a pre-hashed SHA1 key, rather than requiring the plaintext key. Most key-dumping tools output the SHA1 hash of relevant keys, so they can now be used directly.
  • Added an -outfile flag to the unprotect command so decrypted files can be written directly to disk, which is often much more useful than a printed hexdump.
  • All -key flags for all commands now handle hexstrings with and without a 0x prefix, rather than blindly and silently discarding the first two bytes of input.

@Aptimex Aptimex changed the title dpapi.py improvements dpapi.py QoL improvements Apr 3, 2026
@anadrianmanrique anadrianmanrique added the in review This issue or pull request is being analyzed label May 27, 2026
@gabrielg5 gabrielg5 added medium Medium priority item and removed in review This issue or pull request is being analyzed labels Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

medium Medium priority item

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants