as0ler / binarycookiereader Goto Github PK
View Code? Open in Web Editor NEWA tool to read the binarycookie format of Cookies on iOS applications
A tool to read the binarycookie format of Cookies on iOS applications
If you find software that doesn’t have a license, that generally means you have no permission from the creators of the software to use, modify, or share the software. Although a code host such as GitHub may allow you to view and fork the code, this does not imply that you are permitted to use, modify, or share the software for any purpose.
Source: https://choosealicense.com/no-permission
Author's contact information is provided in the script header,
For any bug fixes contact me: [email protected]
I recommend reaching out to them and asking for permission to post their code.
Just used it. Works great!
Fast forward to 2024 and this did not work for me out of the box using Python 3.12.2. In general the handling of byte data isn't working, beginning with the file signature check which results in the error: "Not a Cookies.binarycookie file". But also, StringIO didn't work.
I got it working, but actually I had grabbed a different version at https://github.com/ktnjared/BinaryCookieReader . I've never done a pull request before but I'm not sure which version to start with if I were to do so. The core changes I made are (line numbers are off because I made other changes):
from io import BytesIO
34c37
< if str(file_header) != 'cook':
if file_header != b'cook':
57,59c60,62
< # Converts the string to a file. So that we can use read/write operations easily.
< page = StringIO(page)
< page.read(4) # page header: 4 bytes: Always 00000100
# Converts the bytes to a file. So that we can use read/write operations easily. pageio = BytesIO(page) pageio.read(4) # page header: 4 bytes: Always 00000100
num_cookies = unpack('<i', pageio.read(4))[0]
cookie_offsets.append(unpack('<i', pageio.read(4))[0])
pageio.read(4) # end of page header: Always 00000000
pageio.seek(offset) # Move the page pointer to the cookie starting point cookiesize = unpack('<i', pageio.read(4))[0] # fetch cookie size cookie = BytesIO(pageio.read(cookiesize)) # read the complete cookie
cookie_flags = 'Unknown'+str(flags)
url = url+u.decode()
name = name+n.decode()
path = path+pa.decode()
value = value+va.decode()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.