Skip to content

Instantly share code, notes, and snippets.

View sfegan's full-sized avatar
👨‍💻
Moderately hard at work

Stephen Fegan sfegan

👨‍💻
Moderately hard at work
  • LLR/Ecole Polytechnique
  • France
View GitHub Profile
@sfegan
sfegan / parse_manifest.py
Created March 2, 2017 19:52 — forked from aliou/parse_manifest.py
Manifest.mbdb parsing for iOS 5+.
#!/usr/bin/env python
# From http://stackoverflow.com/questions/3085153/how-to-parse-the-manifest-mbdb-file-in-an-ios-4-0-itunes-backup
import sys
import hashlib
mbdx = {}
def getint(data, offset, intsize):
"""Retrieve an integer (big-endian) and new offset from the current offset"""
value = 0