browserutils / kooky

Go code to read cookies from browser cookie stores.
MIT License
204 stars 41 forks source link

Unable to read cookies from chrome for windows from 18/9/2023 #66

Closed phanik195 closed 3 months ago

phanik195 commented 11 months ago
cookies := kooky.ReadCookies(kooky.Valid, kooky.Name("ABC"))

fmt.Println("cookies", &cookies)
for _, cookie := range cookies {
    token_value = cookie.Value
    fmt.Println("Name " + cookie.Name + " :value " + cookie.Value)
}

Note : the same is working for Mac. Till last week able to cookie from chrome, but from 18/09/2023 we are facing an issue with windows. Can anyone Please help us that would be great.

zellyn commented 11 months ago

Just curious: any chance you know how to set up a Windows-flavored test environment on a Mac or Raspberry Pi? I don't have any Windows machines to test with 😞

phanik195 commented 11 months ago

No , @zellyn

phanik195 commented 11 months ago

can anyone please help me on these its breaking your existing flow.

phanik195 commented 11 months ago

@zippoxer , can you please help on these issue.

srlehn commented 11 months ago

I will try to test this soonish...

srlehn commented 11 months ago

Chrome 117.0.5938.150 on Windows 10 works fine.

ghost commented 10 months ago

Chrome 118.0.5993.88 on Windows does not work at all. Don't know what kind of changes maybe google did, but something happened.

ghost commented 10 months ago

Ok, since version 118 chrome cypher the cookies with a private key, based on account user password... so, to decrypt the cookies now it's needed the user password before. Since version 36 it was optional, now is mandatory. Game over with chrome... same happens in Android

srlehn commented 10 months ago

Retested with v118.0.5993.89 on Windows 10, it still works. I am unable to reproduce this.

The Chrome encryption is that way (DPAPI) for quite a while now, afaik there aren't any new changes to it, kooky knows how to decrypt those cookies (internal/chrome/chrome{,_windows}.go (getKeyringPassword())).

@s34rch1ng-l0g1c are you using the most current kooky commit? (go get -u github.com/browserutils/kooky@master) Was Chrome closed when you tried reading cookies? What was the exact error message?

ghost commented 10 months ago

Thank you for your response, my fault. The problem was not being updated and chrome opened up.