Skip to content

Conversation

rxwx
Copy link
Contributor

@rxwx rxwx commented Jan 5, 2023

This PR allows the user to specify the /password flag in SHA1 format when the machine is not domain-joined (i.e. local). These SHA1 passwords are calculated as SHA1(UTF16LE(password)), which is output by mimikatz' sekurlsa::msv. This feature mirrors the functionality already provided to support PtH for NTLM on domain-joined machines.

Note that when using the masterkeys command with a /target specified (e.g. a path to directory containing masterkeys), SharpDPAPI will not attempt to detect domain-joined-ness via the BK file (since it may not exist simply because the user didn't copy it from the target system) - therefore I've also added the /local flag which can be specified along with /target to force the SHA1 path.

rxwx and others added 5 commits January 4, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant