xpwntool

From The iPhone Wiki
Jump to: navigation, search

This is part of XPwn.

This tool is used to decrypt, unpack, re-pack and re-encrypt img3 files. When ran without keys, displays the file KBAG which can be used with AES engine payloads such as greenpois0n.

By default it will decrypt and unpack the file (e.g. expand the lzss-compressed kernelcache file). To re-encrypt and re-pack the file after patching, use the -t option with the path of the original file.

Links