hacks/dump-imessages/iphone-dataprotection/python_scripts/windows_redsn0w_keys.py

13 lines
226 B
Python

#HAX
d=open("redsn0w_win_0.9.9b4/redsn0w.exe", "rb").read()
i = d.find("<key>IV</key>")
i = d.rfind("<?xml",0,i)
j = d.find("</plist>", i)
assert i != -1
assert j != -1
open("Keys.plist", "wb").write(d[i:j+8])