ZenHAX

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

All times are UTC




Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Mon Oct 09, 2017 12:27 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7262
ZSTD_MAGICNUMBER, good catch :)


Top
   
PostPosted: Tue Oct 10, 2017 4:33 pm 

Joined: Fri Oct 09, 2015 3:38 pm
Posts: 26
^The script works great now, thanks @aluigi and @deepshit.


Top
   
PostPosted: Thu Dec 14, 2017 12:57 am 

Joined: Wed Mar 23, 2016 5:11 am
Posts: 20
aluigi wrote:
I bet the problem is the finalSize 32bit field that apparently is a 24bit:
Code:
01 00 04 60 0f 70 00 b0
So 0x460 is read as 0x01000460.

Are you using FB2Dumper.py?
If yes then find the following line:
Code:
finalSize, magic, payloadLen = unpack(">IHH", cas.read(8))
and add this line after it:
Code:
finalSize &= 0x00ffffff

Hi aluigi,

I am using that script you mention on MEA game, and no matter if I add the line you mention or not, I still get the following error after it extracts/dumps some files,
Code:
Traceback (most recent call last):
  File "C:\MEADumper (2).py", line 319, in <module>
    dumpRoot(g_MainDataRoot)
  File "C:\MEADumper (2).py", line 289, in dumpRoot
    dump(fname, g_TargetDirectory)
  File "C:\MEADumper (2).py", line 203, in dump
    casPayload(entry, targetPath, sourcePath, entry.size)
  File "C:\MEADumper (2).py", line 263, in casPayload
    finalSize, magic, payloadLen = unpack(">IHH", cas.read(8))
error: unpack requires a string argument of length 8

any clue as to how can I get passed it ?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2

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