Legend of Kyrandia pak

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Legend of Kyrandia pak

Post by AntonZab »

Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Legend of Kyrandia pak

Post by Ekey »

Code: Select all

# Legend of Kyrandia (PAK format)
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

get PAK_SIZE asize

do
  get OFFSET long
  get NAME string
  savepos TEMP
  get NEXT_OFFSET long
 
  if NEXT_OFFSET == 0
    xmath SIZE "PAK_SIZE - OFFSET"
  else
    xmath SIZE "NEXT_OFFSET - OFFSET"
  endif
 
  log NAME OFFSET SIZE
  goto TEMP
while NEXT_OFFSET != 0
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Legend of Kyrandia pak

Post by AntonZab »

After unpacking each file. In addition to the other files. creates a single file with a size of 0 bytes.




Короче один файл с 0 байтов появляется после распаковки каждого архива
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Legend of Kyrandia pak

Post by AntonZab »

and everything is fine
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Legend of Kyrandia pak

Post by Ekey »

AntonZab wrote:Короче один файл с 0 байтов появляется после распаковки каждого архива

Он лишний просто
deckards
Posts: 2
Joined: Wed May 20, 2015 10:52 pm

Re: Legend of Kyrandia pak

Post by deckards »

Check out the source code of ScummVM:
https://github.com/scummvm/scummvm/blob ... source.cpp

There's PAK implementation for Kyrandia and other Westwood games!
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Legend of Kyrandia pak

Post by AntonZab »

Thanx