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

fix cookie and password decryption for macOS #465

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

learnerLj
Copy link

@learnerLj learnerLj commented Dec 27, 2024

  1. FIX cookie decryption: Handle cases for current mac chrome, trimming the value to remove ramdom bytes post decryption.
  2. Fix password decryption: Introduced a new error ErrDarwinNotSupportDPAPI to clearly indicate the lack of support for DPAPI on macOS. It also allows the password decryption by keychain.
password, err = crypto.DecryptWithDPAPI(pwd)
if err != nil {
    password, err = crypto.DecryptWithChromium(masterKey, pwd)
    if err != nil {
	    log.Debugf("decrypt chromium password error: %v", err)
    }
}

https://github.com/moonD4rk/HackBrowserData/blob/410e78051853c81d1add5e71cb158517bb20427a/browserdata/password/password.go#L77C1-L83C5

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