Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luckydonald/binarycookie
A Python module that allows reading macOS/iOS's *.binarycookie files.
https://github.com/luckydonald/binarycookie
Last synced: 30 days ago
JSON representation
A Python module that allows reading macOS/iOS's *.binarycookie files.
- Host: GitHub
- URL: https://github.com/luckydonald/binarycookie
- Owner: luckydonald
- License: mit
- Created: 2021-09-30T22:53:27.000Z (about 3 years ago)
- Default Branch: mane
- Last Pushed: 2021-09-30T23:05:44.000Z (about 3 years ago)
- Last Synced: 2024-09-14T12:40:15.090Z (about 2 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# binarycookie
Allows reading macOS/iOS/iphoneOS/ipadOS `.binarycookie` files.
Based on http://www.securitylearn.net/2012/10/27/cookies-binarycookies-reader/
```py
from binarycookie import parseCOOKIE_FILE = '/Users/luckydonald/Library/Cookies/Cookies.binarycookies'
# you may need to make a duplicate of that file to your desktop (or similar) due to macOS security blocking access in system folders.with open(COOKIE_FILE, 'rb') as file:
cookies = parse(file)
# end withprint(cookies)
```Which may result in something like
```py
[
Cookie(
name='cookie_check', value='yes', domain='.paypal.com', path='/',
expiry_date='Thu, 28 Sep 2028', cookie_flags='Secure; HttpOnly'
),
Cookie(
name='mobileClient', value='ios', domain='help.steampowered.com', path='/',
expiry_date='Sat, 13 Sep 2031', cookie_flags='Unknown'
),
]
```