ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Dec 05, 2020 6:05 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Feb 27, 2020 2:25 pm 

Joined: Tue Feb 18, 2020 3:01 am
Posts: 3
Context: Phoenix Wright: Ace Attorney's sound files (.unity3d) are encrypted with Rijndael. I am able to successfully decrypt the file, modify it, and then I need to encrypt it again so the game will accept it.

I'm using this script (from https://www.zenhax.com/viewtopic.php?f=9&t=11186) to decrypt:
Code:
get NAME filename
encryption Rijndael "\x35\x38\x9A\xFF\xF2\x61\xB3\xE8\x87\x22\x24\x0B\x6B\x0B\x25\xC8" "\x01\x85\x40\xA5\x57\xDE\x8C\x4E\x86\xE4\x23\xE3\x3A\xB9\x77\x84"
get SIZE asize
log NAME 0 SIZE


To re-encrypt what I've decrypted, would I just run the same script on my output file again? (Doesn't seem like that works.) Or are there changes that need to be made to this script to be able to encrypt?


Last edited by umithink on Thu Feb 27, 2020 2:39 pm, edited 1 time in total.

Top
   
PostPosted: Thu Feb 27, 2020 2:38 pm 

Joined: Tue Feb 18, 2020 3:01 am
Posts: 3
(If this thread would be a better fit under the "Help with QuickBMS & tools" forum, feel free to move this thread there.)


Top
   
PostPosted: Fri Feb 28, 2020 7:11 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11852
Just add 1 to the "encryption" instruction and it will encrypt the file:
Code:
get NAME filename
encryption Rijndael "\x35\x38\x9A\xFF\xF2\x61\xB3\xE8\x87\x22\x24\x0B\x6B\x0B\x25\xC8" "\x01\x85\x40\xA5\x57\xDE\x8C\x4E\x86\xE4\x23\xE3\x3A\xB9\x77\x84" 1
get SIZE asize
log NAME 0 SIZE


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited