Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR dpapi::masterkey #329

Open
jantryer opened this issue Feb 2, 2021 · 9 comments
Open

ERROR dpapi::masterkey #329

jantryer opened this issue Feb 2, 2021 · 9 comments

Comments

@jantryer
Copy link

jantryer commented Feb 2, 2021

Hello,
when running command:
dpapi::masterkey /in:"Protect\SID-FULL-NAME\GUID-KEY-NAME" /password:PLAIN_PASSWORD_TEXT /protected
it shows error;
[masterkey] with password: PLAIN_PASSWORD_TEXT (protected user)
ERROR kuhl_m_dpapi_masterkey ; kull_m_dpapi_unprotect_masterkey_with_password

when I run without /protected and with argument /sid:"SID_FULL_NAME" the result is same.

Version of running OS Win 10 18363 (x64)
Version of offline OS Win 10 (some older version)
mimikatz 2.2.0.

Very thanks for help.

@jantryer
Copy link
Author

jantryer commented Feb 2, 2021

add:
Also same result with using /hash:CORRECT_SHA1_HASH instead of /passord
Local machine, not member of domain

@Papotito123
Copy link

Hello:.
command should be like:
dpapi::masterkey /in:path-to-masterkey /sid:usersid /hash:user-passw-SHA1

At end , try with /protected or /unprotect.
This were said by the developer some time before ,saying could be feasible due to newer windows versions.

@Papotito123
Copy link

Hello:
What you what to accomplish ?
There's plenty of GUID Masterkey names.For decrypt Chrome logins, System Masterkey ,User M,asterkey ...

dpapi::masterkey /in:"C:\Users\username\AppData\Roaming\Microsoft\Protect\S-I-D\GUIDname" /password:userpassword /sid:S-I-D /protected

,you will get Masterkey SHA1 hash.

But you are sure this GUID name is the right one ?

For example, if you run;

dpapi::cred /in:"C:\Users\username\AppData\Local\Microsoft\Credentials\credname"

,the GUID name given is the one to use to decrypt Google Chrome logins(really to decrfypt Local State file to get the AES SHA1 key to decrypt Chrome logins)

@jantryer
Copy link
Author

jantryer commented Feb 4, 2021 via email

@jantryer
Copy link
Author

jantryer commented Feb 4, 2021 via email

@djamadeus
Copy link

djamadeus commented Feb 20, 2021

Same problem here, same Guide:
Stuck with (password Xed out):
Auto SID from path seems to be: S-1-5-21-4012662314-1231155891-570202076-1001

[masterkey] with password: XXXXXXXX (normal user)
ERROR kuhl_m_dpapi_masterkey ; kull_m_dpapi_unprotect_masterkey_with_password

Also getting the same error when trying SHA1 instead

@Papotito123
Copy link

Hello:
When output says (normal user) means you didn't run command with /protected:

dpapi::masterkey /in:"C:\Users\username\AppData\Roaming\Microsoft\Protect\S-I-D\GUIDname" /password:userpassword /sid:S-I-D /protected

kull_m_dpapi_unprotect_masterkey_with_password error is mostly because the password is not the right one to decrypt this masterkey guid.
Why? Because the password used to encrypt this masterkey guid is not the actual password.Or you are trying to decrypt "other user" masterkey guid but with your user password.

@djamadeus
Copy link

@Papotito123 you're right, I had the password wrong, stupid me. worked like charm after finally remembering it right.

@Papotito123
Copy link

Hello:
Cool.

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

No branches or pull requests

3 participants