Skip to content

Instantly share code, notes, and snippets.

@kamikat
Last active March 25, 2023 18:38
Show Gist options
  • Save kamikat/7a9c3c5a495e41aed26b to your computer and use it in GitHub Desktop.
Save kamikat/7a9c3c5a495e41aed26b to your computer and use it in GitHub Desktop.
export curl cookie text from firefox and chrome on linux
@vogler
Copy link

vogler commented Oct 5, 2022

Chrome path for macOS is ~/Library/Application\ Support/Google/Chrome/Default/Cookies.
However, I noticed that the column value is empty, and only encrypted_value has data.

@vogler
Copy link

vogler commented Oct 5, 2022

Ok, the values are 'AES-CBC encrypted with an OS protected key (keyring)'.
Get key: security find-generic-password -w -a Chrome.
This PR has code for it: https://github.com/yt-dlp/yt-dlp/pull/488/files#diff-c042473d560a04c6fd504c3cb3ae2c9a56a27e42458132a265a3ffda0d60a5c7R259

@kamikat
Copy link
Author

kamikat commented Oct 13, 2022

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment