safari-cookie/README.md

28 lines
1.1 KiB
Markdown
Raw Normal View History

2014-07-23 18:08:10 +02:00
# safari-cookie
## A Tool for managing Safari cookies
2014-07-23 17:56:40 +02:00
2014-07-23 18:08:10 +02:00
### Info
Parse and write `.binaryCookies` format used by Safari and other iOS/OSX applications.
You can filter cookies by domain name using a blacklist or whitelist or dump the data and export in other formats.
2014-07-23 18:09:42 +02:00
### Usage
See python cookie.py -h for help on usage.
2014-07-23 18:12:19 +02:00
Default cookie storage for Safari is `~/Library/Cookies/Cookies.binarycookies`
2014-07-23 21:39:12 +02:00
### Automatically filter cookies
In `filter-cookie` directory there is an example script and launchd job that will filter the cookies using a whitelist.
To use this setup copy `cookie.py` in your PATH, rename it `cookie` and make it executable.
The put `filter-script` in `/usr/local/bin` and `rn.hmjoj.filter-cookie` in `~/Library/LaunchAgents`
Now everytime Safari writes his cookies they will be filtered.
2014-07-23 18:08:10 +02:00
### License
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
Parsing is based on [this](http://www.securitylearn.net/2012/10/27/cookies-binarycookies-reader/) SecurityLean's article.
Thanks to Satishb3.