ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Aug 18, 2017 10:53 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Feb 18, 2017 5:27 pm 

Joined: Sun Jul 10, 2016 11:07 am
Posts: 48
is it possible to create a bms script Extract/deflate zlib without knowing extracted size like how offzip works? I cant use offzip since some files are not extracted properly (some are cut) and the TOC is encrypted and I got no clue how to decrypt it.

I tried this, jus by giving it a big extract files, it works with some but fails on most

Code:
log MEMORY_FILE 0 0
clog MEMORY_FILE OFFSET ZSIZE 0x1000000
GetDString EXT 0x3 MEMORY_FILE
string NAMEZ p= "%s_%05d.%s" NAME i EXT
get EXTRACT_SIZE ASIZE MEMORY_FILE
log NAMEZ 0 EXTRACT_SIZE MEMORY_FILE


not sure if there is a proper computation to be done, can anyone help?


Top
   
PostPosted: Sun Feb 19, 2017 10:51 am 

Joined: Sun Jul 10, 2016 11:07 am
Posts: 48
Never mind... it seems the zsize im giving it is wrong and I really need to decrypt the TOC to get the proper zsize, size and offsets

any idea where should I start to decrypt the TOC of this file format?


Attachments:
File comment: sample
string.rar [360.13 KiB]
Downloaded 27 times
Top
   
PostPosted: Mon Feb 20, 2017 11:48 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6412
Regarding the decompression with unknown compressed/decompressed size, use: comtype unzip_dynamic


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