A tool for manipulating IMG4, IM4M and IM4P files
Install dependencies:
To compile run:
./autogen.sh
make
sudo make install
img4tool infile.img4
-a
print everything from im4m-i
print only im4pimg4tool -e -p out.im4p in.img4
img4tool -e -m out.im4m in.img4
img4tool -e -p out.im4p -s in.shsh
img4tool -e -o out.bin in.im4p
img4tool -e --iv <IV> --key <KEY> -o out.bin in.im4p
img4tool -c out.img4 -p in.im4p
img4tool -c out.img4 -p in.im4p -m in.im4m
img4tool -c out.img4 -p in.im4p -s in.shsh
img4tool -c out.im4p -t ibss IBSS.raw
img4tool -c out.im4p -t ibss -d "Pwned iBSS no sigpatches" IBSS.raw
img4tool -n rkrn -p kernel.im4p
img4tool --convert -s out.shsh in.im4m
img4tool --verify BuildManifest.plist ticket.im4m
img4tool --verify BuildManifest.plist -s ticket.shsh
img4tool --verify BuildManifest.plist in.img4
//needs to contain IM4P and IM4M