Tool for managing Safari cookies
 
 
Go to file
Rnhmjoj e5986503c3 Add missing instruction 2014-07-25 16:31:02 +02:00
filter-cookie Add launchd script 2014-07-23 21:39:12 +02:00
.gitignore Initial commit 2014-07-23 17:56:40 +02:00
README.md Add missing instruction 2014-07-25 16:31:02 +02:00
cookie.py Add JSON export 2014-07-23 18:59:57 +02:00

README.md

safari-cookie

A Tool for managing Safari cookies

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.

Usage

See python cookie.py -h for help on usage.

Default cookie storage for Safari is ~/Library/Cookies/Cookies.binarycookies

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.
  • copy filter-script in /usr/local/bin and rn.hmjoj.filter-cookie in ~/Library/LaunchAgents
  • run launchctl load ~/Library/LaunchAgents/rn.hmjoj.filter-cookie

Now everytime Safari writes his cookies they will be filtered.

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 SecurityLean's article. Thanks to Satishb3.