This was a pending change to:
- Use the same tagline, copyright and license notice across files.
- Remove authors' contacts that are no longer valid (due to affiliation changes).
- Update repository location.
- Update license file with missing licenses (althought those were already in source files).
This doesn't include any change on the source code, nor any change on current copyright or licenses. Just formatting and phrasing to make our and distro's maintainers life easier.
In reviewing #1051 (and related #347) we found out that there's some ugly duplicated code that's better suited for an utils function.
The expected target format is:
`<DOMAIN></USERNAME><:PASSWORD>@HOSTNAME`
This PR:
- Moved target parsing routine to an utils module.
- Added unit tests for the new function.
- Using the new function across example scripts that accept a target.
- Thru the unprotect command.
- You need to specify the masterkey needed for decryption, you can decrypt masterkeys using the masterkey command.
- You can optionally specify an extra entropy either as a string or a binary file.
Hola,
I added support for domain backup keys extraction for the use of master keys decryption (huge thanks and credit to @gentilkiwi)
Example:
# Extract domain backup keys
dpapi.py -debug backupkeys -t domain/user:password@DC --export
# decrypt master key using PVK file
dpapi.py masterkey -file 8ef4fb99-bb78-4592-b989-303c4aea5554 -pvk G$BCKUPKEY_E63DFF3E-CB30-41AF-AB69-FF7B8769C39B.pvk