Skip to content
New issue

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

Add possibility to patch encrypted im4p files if ivkey is present #8

Open
krisanovdev opened this issue Oct 8, 2019 · 4 comments
Open

Comments

@krisanovdev
Copy link

Hi, I wanna to patch ibss.im4p, I've already decrypted it and patched.
I do not know how to pack it back to encrypted im4p.

@xerub
Copy link
Owner

xerub commented Nov 17, 2019

you can patch it with -P, there is an example of the patchfile format in the project README.
alternatively, you can decrypt, patch, encrypt using openssl enc -aes-256-cbc -nopad, then put back with img4 -R

@justtryingthingsout
Copy link

how do i use img4 -R? i keep getting [e] cannot open 'rawimg.bin' when i do img4 -i rawimg.bin -R out.im4p

@justtryingthingsout
Copy link

also img4 -i original.im4p -R rawimg.bin -o out.im4p does nothing, checked with vbindiff and diff

@xerub
Copy link
Owner

xerub commented Oct 27, 2020

You can't replace the payload in an im4p. im4p is the payload.
What you can do, however, is to replace the payload (aka im4p) inside an img4.
The img4 is a container holding im4p, im4m and (optionally) im4r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants