Doubts, help and support about QuickBMS and other game research tools
-
BySc
- Posts: 4
- Joined: Sun Jun 23, 2019 2:06 pm
Post
by BySc »
I have a file encrypted when I use this code works without probleam,
Code: Select all
goto 4
get size asize
savepos offset
encryption rc4 KEY
get NAME basename
string NAME += ".png"
log NAME offset size
but some of files compressed and ecrypted when I try decompress and decrypt with this code I am getting error.
Error:
Code: Select all
Error: impossible to write 0xefdffd20 bytes (total 0xefdffd20)
Check your disk space or the script is wrong
Last script line before the error or that produced the error:
129 log NAME offset size
Decompression code
Code: Select all
comtype zlib_compress
get SIZE asize
clog test 0 SIZE SIZE
-
aluigi
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi »
For sure a mistake is using SIZE equal to the whole file and an OFFSET which is not zero.
Solution
math SIZE - OFFSET
-
BySc
- Posts: 4
- Joined: Sun Jun 23, 2019 2:06 pm
Post
by BySc »
Thank you but i changed script because with asize not work correctly. I cant share sample file for decompression I guess.
For decryption works with this
Code: Select all
goto 4
get size long
savepos offset
encryption rc4 KEY
get NAME basename
string NAME += ".png"
log NAME offset size
with other file must decompress and decrypt and I am getting error " Can't read byte"
Code: Select all
goto 4
get size long
savepos offset
#math SIZE - OFFSET
comtype zlib_compress
clog test OFFSET SIZE SIZE
-
aluigi
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi »
Better to share file and name of the game.