News for hackers. Stuff that matters.
Re:Show HN: Use cookies from Chrome (CDP) in cURL without co... by thrdbndndn on Saturday April 01, 2023 @11:16AM (#35400931)
Feel like you can just read Chrome's cookie from the file (and filter out the ones you need by site, of course) so you don't need to bother run chrome in debugging mode?

Like https://github.com/borisbabic/browser_cookie3

Re:Show HN: Use cookies from Chrome (CDP) in cURL without co... by toomuchtodo on Saturday April 01, 2023 @11:28AM (#35401032)
Re:Show HN: Use cookies from Chrome (CDP) in cURL without co... by thrdbndndn on Saturday April 01, 2023 @11:57AM (#35401287)
Thanks for the link. I know yt-dlp does, but from your link I found another library (https://github.com/n8henrie/pycookiecheat) that can do that and it seems more popular than browser_cookie3. (browser_cookie3 works totally fine last time I tried).
Re:Show HN: Use cookies from Chrome (CDP) in cURL without co... by fipso on Saturday April 01, 2023 @11:43AM (#35401158)
This is awesome. I did not know decrypting chrome's password db is still that easy.
Re:Show HN: Use cookies from Chrome (CDP) in cURL without co... by paulirish on Saturday April 01, 2023 @01:24PM (#35402097)
Cookies != Passwords..

But anyway... You know this is also easily accessible within DevTools, yah? https://umaar.com/dev-tips/3-copy-as-curl/

Re:Show HN: Use cookies from Chrome (CDP) in cURL without co... by eurasiantiger on Saturday April 01, 2023 @01:28PM (#35402127)
One could argue that cookies need to be more securely stored than passwords, because they can allow an attacker to bypass passwords and all other authentication factors.
Re:Show HN: Use cookies from Chrome (CDP) in cURL without co... by djbusby on Saturday April 01, 2023 @08:24PM (#35405704)
Password DB in basic-store uses the key 'peanut'.
Re:Show HN: Use cookies from Chrome (CDP) in cURL without co... by herpderperator on Saturday April 01, 2023 @07:31PM (#35405290)
Why is the shebang `#!python` instead of `#!/usr/bin/env python`?