Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Problem encrypting rom.zip file #83

Open
jdmedeiros opened this issue Jan 10, 2015 · 5 comments
Open

Problem encrypting rom.zip file #83

jdmedeiros opened this issue Jan 10, 2015 · 5 comments

Comments

@jdmedeiros
Copy link

Hi Kenny, first of all, thanks for this great program.
I have managed to use bruutveal to find the HTC Desire 510 key for the rom.zip file. I then used that key to decrypt the rom.zip file and in the process I got 6 zip files named 01_rom2.zip through 06_rom2.zip; these files I can open, view and change. I zipped all 6 files into one zip using "zip newrom 0?_rom2.zip" and then, using the bruteforce branch (because the encrypt branch does not support the -K flag, I ran:
./ruuveal -E -m 1.47.652.1 -k 0x006e -c 0x0a -K ./htc_a11chl.key ./newrom.zip newrom_enc.zip but I get Invalid zip file - aborting! failed to encrypt zip file!
I must be missing something, but I can't get there and would appreciate if you could provide some guidance. Thanks

again!

root@luxsrv:~/ruuveal-bruteforce# ./ruuveal -K ./htc_a11chl.key ./rom.zip rom2.zip

ruuveal

Large zip format detected containing 6 zipfile(s)
Decrypted RUU (zip) written to: 01_rom2.zip
Decrypted RUU (zip) written to: 02_rom2.zip
Decrypted RUU (zip) written to: 03_rom2.zip
Decrypted RUU (zip) written to: 04_rom2.zip
Decrypted RUU (zip) written to: 05_rom2.zip
Decrypted RUU (zip) written to: 06_rom2.zip
root@luxsrv:/ruuveal-bruteforce# zip newrom 0?_rom2.zip
adding: 01_rom2.zip (stored 0%)
adding: 02_rom2.zip (stored 0%)
adding: 03_rom2.zip (stored 0%)
adding: 04_rom2.zip (stored 0%)
adding: 05_rom2.zip (stored 0%)
adding: 06_rom2.zip (stored 0%)
root@luxsrv:
/ruuveal-bruteforce# ./ruuveal -E -m 1.47.652.1 -k 0x006e -c 0x0a -K ./htc_a11chl.key ./newrom.zip newrom_enc.zip

ruuveal

Invalid zip file - aborting!
failed to encrypt zip file!
root@luxsrv:~/ruuveal-bruteforce#

@kmdm
Copy link
Owner

kmdm commented Jan 10, 2015

Encrypt support was never really applied to the largezip format, but, that aside... There's not really a reason to re-encrypt (is there?) Although there is probably a reason to support regenerating a decrypted "largezip"

@jdmedeiros
Copy link
Author

It did not occur to me that I can flash the unencrypted rom.zip file? Can I? We will soon find out. Support for regenerating a decrypted "largezip" would be good (not sure I follow you here). Thank you!

@kmdm
Copy link
Owner

kmdm commented Jan 10, 2015

I see no reason you couldn't flash an unencrypted file (with S-OFF / unlock).

However your newrom.zip file isn't valid... You have a zip containing 6 zip files, not a format I believe hboot will understand.

@jdmedeiros
Copy link
Author

Probably not. Got it... that's why we need "support for regenerating a decrypted largezip! Thank you!

@jdmedeiros
Copy link
Author

Kenny... that support regenerating a decrypted "largezip" that you mentioned... boy, that would be good. We would still have the HTC signature key to deal with with... unfortunately no one has figured out a way of S-OFFing this HTC Desire 510.

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

No branches or pull requests

2 participants