
Again ZipCrypto format. Currently can't decompress some files i dont know why and temporarily set deflate_noerror
Code: Select all
# Eligium (Magic World 2) (MW2 format) 0.1
#
# Based on script Legendary Champions by Aluigi
# Modified by Ekey (h4x0r)
#
# http://forum.xentax.com
#
# script for QuickBMS http://quickbms.aluigi.org
set ZIP_PASSWORD string "Mw2zd198703k%lu"
ComType deflate_noerror
goto -0x16
savepos OFFSET
get MW_sign long #2owm
get disk_num short
get disk_start short
get central_entries short
get central_entries short
get central_offset long
math OFFSET -= central_offset
goto OFFSET
for i = 0 < central_entries
get LOC_sign long #looc
get sign short
get ver_made short
get ver_need short
get flag short
get modtime short
get moddate short
get crc long
get comp_size long
get uncomp_size long
get name_len short
get extra_len short
get comm_len short
get disknum short
get int_attr short
get ext_attr long
get rel_offset long
getdstring name name_len
getdstring extra extra_len
getdstring comment comm_len
savepos CENTRAL_OFFSET
goto rel_offset
get PK_sign long #dlog
get ver short
get flag short
get method short
get modtime short
get moddate short
get crc long
get skip_comp_size long
get skip_uncomp_size long
get name_len short
get extra_len short
getdstring name name_len
getdstring extra extra_len
savepos offset
set NEW_CRC = crc
math NEW_CRC -= 87
string NEW_PASSWORD p= ZIP_PASSWORD NEW_CRC
if flag != 0
if flag & 1
encryption zipcrypto NEW_PASSWORD 1
endif
if method == 0
log name offset uncomp_size
else
clog name offset comp_size uncomp_size
endif
if flag & 1
encryption "" ""
endif
endif
goto CENTRAL_OFFSET
next i

