i would like an update on CMF script

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
bachou
Posts: 20
Joined: Sat Dec 05, 2015 8:50 am

i would like an update on CMF script

Post by bachou »

hell guys the CMF scripts for closer is really outdated now, can anyone update it please ? i'm getting this error for newer files

Code: Select all

  offset   filesize   filename
--------------------------------------
- library MEMORY_FILE2 loaded at address 13400000
- function found at offset 13400000
- library MEMORY_FILE3 loaded at address 13410000
- function found at offset 13410000
  00000278 36457227   ITEM_TEMPLET3.NTF

Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info:  algorithm   1
       offset      00000278
       input size  0x000dc540 902464
       output size 0x022c4b0b 36457227
       result      0xffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (36457227)

Last script line before the error or that produced the error:
  73  clog NAME OFFSET ZSIZE SIZE

Press ENTER or close the window to quit



this script is still working for old files but some new files causing the extract progress to stop...

the script is under attachment, also i would like an improvement that the script will create the dat folders put the files in that folder too, example : if DAT001.CMF contains a.jpg, b.jpg, c.jpg. is it possible to make The script to create a DAT001 folder with a.jpg, b.jpg, c.jpg in it ? and DA002 folder etc... with its own contents (the current script just put everything in one folder and that's not good)

also can you make the script skip certain file extensions and do not extract them ? like skip .NTF extensions and .XMD

sample files :

http://www.mediafire.com/file/w3otwqo74 ... s.rar/file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: i would like an update on CMF script

Post by aluigi »

The script is correct, it's the same of viewtopic.php?p=13891#p13891 but now the content of the files appear to be encrypted.
That's the reason why you get that error and I'm not sure if Ekey will work again on it.

For sure reusing the same encryption adopted for the header will not work (tested).
bachou
Posts: 20
Joined: Sat Dec 05, 2015 8:50 am

Re: i would like an update on CMF script

Post by bachou »

aluigi wrote:The script is correct, it's the same of viewtopic.php?p=13891#p13891 but now the content of the files appear to be encrypted.
That's the reason why you get that error and I'm not sure if Ekey will work again on it.

For sure reusing the same encryption adopted for the header will not work (tested).



so... are there any solution ? or can you at least make a change that let quickbms continue the extraction after encountering the new encrypted files ?
also is it possible to make quickbms extract certain file extension ?(i only need .jpn, png and dds in this case)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: i would like an update on CMF script

Post by aluigi »

without key and algorithm you can do nothing because all the files are encrypted as far as I have seen.

quickbms has some command-line options for filtering the extracted files like:
-f "{}.jpg,{}.png,{}.dds"
bachou
Posts: 20
Joined: Sat Dec 05, 2015 8:50 am

Re: i would like an update on CMF script

Post by bachou »

uhm... can you tell me how to add that filtering ? i'm clueless on this script stuff
also how to make quickbms continue the extraction after encountering encrypted file ? the extraction will stop when quickbms can't extract encrypted files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: i would like an update on CMF script

Post by aluigi »

It's a command-line option anyway, as already said, all the files are encrypted.
bachou
Posts: 20
Joined: Sat Dec 05, 2015 8:50 am

Re: i would like an update on CMF script

Post by bachou »

thanks for answers