We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interesting post about recovering data: http://linuxsleuthing.blogspot.ch/2013/09/recovering-data-from-deleted-sqlite.html
from struct import unpack with open('some.db', 'rb') as f: data = f.read() pageSize = unpack('>h', data[16:18])[0] pageList = [] for offset in range(0, len(data), pageSize): if data[offset] == 13; pageList.append(offset) for offset in pageList: page = data[offset: offset + pageSize] pageHeader = unpack('>bhhhb', page[:8]) pageByte, fbOffset, cellQty, cellOffset, freebytes = pageHeader # get unallocated start = 8 + cellQty * 2 end = cellOffset-start unalloc = page[start:end] print(offset, unalloc, sep=',') # get freeblocks, if any if fbOffset > 0: while fbOffset != 0: start, size = unpack('>hh', page[fbOffset: fbOffset + 4]) freeblock = page[fbOffset: fbOffset + size] print(offset, freeblock, sep = ',') fbOffset = start
The text was updated successfully, but these errors were encountered:
No branches or pull requests
interesting post about recovering data:
http://linuxsleuthing.blogspot.ch/2013/09/recovering-data-from-deleted-sqlite.html
The text was updated successfully, but these errors were encountered: