kmdm / ruuveal

A HTC RUU decryption utility
GNU General Public License v3.0
57 stars 39 forks source link

Problem encrypting rom.zip file #83

Open jdmedeiros opened 9 years ago

jdmedeiros commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

jdmedeiros commented 9 years ago

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.