ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Jul 17, 2019 9:00 am

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Apr 02, 2019 11:35 am 

Joined: Thu May 04, 2017 11:03 am
Posts: 17
First of all, I am not good at English. I use machine translation.
----
I want to port QuickBMS's BMS file (myn_files.bms) to Autoit3.
However, I tried variously, but I do not understand at all the processing of the part of encryption.
If you are familiar with QuickBMS and Autoit 3, please teach me.


Top
   
PostPosted: Tue Apr 02, 2019 3:38 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553
Do you have a link to the script?

I don't have any script with that name and there are no results on search engines.


Top
   
PostPosted: Wed Apr 03, 2019 1:21 am 

Joined: Thu May 04, 2017 11:03 am
Posts: 17
aluigi wrote:
Do you have a link to the script?

I don't have any script with that name and there are no results on search engines.


I'm sorry.
It seems that it is only described on the board of similar site.
Link: https://forum.xentax.com/viewtopic.php?t=11477

I want to reproduce this script's "encryption aes ..." with Autoit3.
Thank you for your help in advance.


Top
   
PostPosted: Wed Apr 03, 2019 3:11 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553
Ok perfect, well it's a simple AES CBC 256bit ("AES-256-CBC") decryption: 256bit key and 128bit ivec.
The whole file is decrypted and the "csv" extension added to the result.
Only that.

Not sure what's the best way to do it in autoit, some posts talk about using php (?!?)


Top
   
PostPosted: Thu Apr 04, 2019 11:50 am 

Joined: Thu May 04, 2017 11:03 am
Posts: 17
Thank you!
I made a CSV using this BMS file. Then I edited the CSV.
I packed it, but I couldn't use it in the game, so I thought it could be ported to AutoIt3.
However, I would like to study other languages because it seems impossible with AutoIt3.


Top
   
PostPosted: Thu Apr 04, 2019 12:20 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553
If you need a script for doing the re-encryption process, you can use this one:
Code:
encryption aes "\xA8\x29\xF0\x20\x27\x97\x8A\xBE\x5D\xF5\xC2\xCD\xD5\xAF\x05\xE5\x6E\xE6\xC5\x11\x1C\xE9\x4C\x86\x1E\x32\x28\x0D\x70\x36\xE3\xAE" "\x1A\x70\xBA\x50\x6B\x6D\x67\x77\xBD\x3B\x09\xE2\x9C\xAA\xF0\x51" 1
get SIZE asize
get NAME basename
string NAME += .myn
log NAME 0 SIZE
Yes, the only different is just the additional "1" in the encryption line.


Top
   
PostPosted: Thu Apr 04, 2019 1:24 pm 

Joined: Thu May 04, 2017 11:03 am
Posts: 17
Wow, thank you very much!
I have to make some changes to the CSV file when encrypting, but I was able to read the changed file! !
Thank you very much.
I want to study to be able to use QuickBMS in the future.


Top
   
PostPosted: Thu Apr 04, 2019 9:22 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10553
You are welcome.
Feel free to ask when you need support.

The main obstacle is the reverse engineering work, quickbms is quite simple to program for performing simple operations.
Obviously complex formats require complex scripts.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 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