Read 1 file, get decryption key, open another file and decrypt it with the key.

Doubts, help and support about QuickBMS and other game research tools
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Read 1 file, get decryption key, open another file and decrypt it with the key.

Post by GHFear »

Literally what the tile says.

How does one Open one file with quickbms, read values in it and then open another file and use those values as a decryption key?
Without having to manually do it ofc.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Read 1 file, get decryption key, open another file and decrypt it with the key.

Post by aluigi »

It depends by the fields and by the algorithm, let's say:

Code: Select all

getdstring KEY 16
open FDSE "other_file.dat"
encryption xor KEY "" 0 16
get SIZE asize
log "output.dat" 0 SIZE

Your file is probably different but the idea is the same.
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: Read 1 file, get decryption key, open another file and decrypt it with the key.

Post by GHFear »

aluigi wrote:It depends by the fields and by the algorithm, let's say:

Code: Select all

getdstring KEY 16
open FDSE "other_file.dat"
encryption xor KEY "" 0 16
get SIZE asize
log "output.dat" 0 SIZE

Your file is probably different but the idea is the same.


Thank you. This was very helpful information :)