Warspear Online [Android] (*.PAK)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Warspear Online [Android] (*.PAK)

Post by Ekey »

Code: Select all

# Warspear Online (Android) (PAK format)
#
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

comtype bzip2

idstring "MDPK"
get VERSION short
get FILES short
goto 0x18

for i = 0 < FILES
    get OFFSET long
    get ZSIZE long
    get SIZE long
    get FLAG byte
    getdstring NAME 55
   
    if SIZE == ZSIZE
      log NAME OFFSET SIZE
    elif SIZE == 0
      log NAME OFFSET SIZE
    else
      clog NAME OFFSET ZSIZE SIZE
    endif
next i