Page 1 of 1

Heroes:Scions of Phoenix Online 火鳳三國

Posted: Fri Oct 30, 2009 2:27 am
by chrrox
The contents of this post was deleted because of possible forum rules violation.

Re: Heroes:Scions of Phoenix Online 火鳳三國

Posted: Fri Oct 30, 2009 3:22 am
by aluigi
interesting format, practically the "shake" files are totally useless because the "pak" ones are normal zip files with UZ instead of PK and filenames xored with 0xb2 :)

Code: Select all

# Heroes:Scions of Phoenix Online
# script for QuickBMS http://aluigi.org/papers.htm#quickbms

comtype deflate
for
    idstring "UZ\x03\x04"

    get ver         short
    get flag        short
    get method      short
    get timedate    long
    get crc         long
    get comp_size   long
    get uncomp_size long
    get name_len    short
    get extra_len   short
    filexor 0xb2
    getdstring name     name_len
    filexor ""
    getdstring extra    extra_len
    savepos offset

    if method == 0
        Log name offset uncomp_size
    elif method == 8
        CLog name offset comp_size uncomp_size
    else
        print "unsupported compression method %method%"
        cleanexit
    endif

    math offset += comp_size
    goto offset
next

Re: Heroes:Scions of Phoenix Online 火鳳三國

Posted: Fri Oct 30, 2009 3:35 am
by chrrox
Thanks for this I was suspecting the name was xored and I saw the offsets but I never thought it was a zip format. thanks so much :)