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

System.Exception: DPAPI was unable to decrypt data #5

Open
JiriSuster opened this issue Apr 16, 2020 · 2 comments
Open

System.Exception: DPAPI was unable to decrypt data #5

JiriSuster opened this issue Apr 16, 2020 · 2 comments

Comments

@JiriSuster
Copy link

Hello, I really love your work. I tried to make this program undetected by sending "Login Data"-->LD and "Local State"-->LS to my server, and then passing it to rebuilded password stealer, which takes LD path and LS path as args[]. So the detected part runs on my computer. It works sometimes normally, but with some files I get this error:
Unhandled exception: System.Exception: DPAPI was unable to decrypt data. ---> System.Exception: CryptUnprotectData failed. ---> System.ComponentModel.Win32Exception: The key is not valid for use in the specified state    --- End of stack trace for internal exception ---    in Stealer.DPAPI.Decrypt (Byte [] cipherTextBytes, Byte [] entropyBytes, String & description)    --- End of stack trace for internal exception ---    in Stealer.DPAPI.Decrypt (Byte [] cipherTextBytes, Byte [] entropyBytes, String & description)    v Stealer.Crypt.decryptChrome (String password, String browser) in C: \ Users \ ADMIN \ Desktop \ Stealer \ Stealer \ modules \ Crypt.cs: line 71    v Stealer.Passwords.get () in C: \ Users \ ADMIN \ Desktop \ Stealer \ Stealer \ modules \ Passwords.cs: line 84    v Stealer.Program.Main (String [] args) in C: \ Users \ ADMIN \ Desktop \ Stealer \ Stealer \ Program.cs: line 26
Is there any way to solve this error? Or it just mean that we cant get passwords from LG/LS files?

@LimerBoy
Copy link
Owner

Hi, add try {} catch {} it's always work for me)

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
@JiriSuster @LimerBoy and others