magisterquis / chromecookiestealer

Steal/Inject Chrome cookies over the DevTools (--remote-debugging-port) protocol.
BSD 3-Clause "New" or "Revised" License
101 stars 11 forks source link

Unable to get cookies #1

Open daboynb opened 7 months ago

daboynb commented 7 months ago

Hi, I'm having an issue.

Google chrome 123.0.6312.46, 64 bit, win 10.

I start chrome with : Start-Process "chrome.exe" -ArgumentList '--remote-debugging-port=9222 --headless --remote-allow-origins=* --user-data-dir="C:\myuser\AppData\Local\Google\Chrome\User Data"'

and chromecookiestealer with :
./chromecookiestealer -dump ./cookies.json

But I always get :

2024/03/16 00:07:24 Wrote 0 cookies to ./cookies.json
2024/03/16 00:07:24 Done in 8ms.

Am I doing something wrong? Thanks

magisterquis commented 6 months ago

I haven't updated the code in a while, so it may not work with current Chrome versions. Can you run it with the -verbose flag and paste the output?

daboynb commented 6 months ago

Sure

chromecookiestealer.exe -dump ./cookies.json -verbose
2024/04/07 20:18:25 Got 0 cookies from browser
2024/04/07 20:18:25 Wrote 0 cookies to ./cookies.json
2024/04/07 20:18:25 Done in 24ms.