很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。
- R+ o# A& x2 ~* B很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。 z4 G& M# C& | O
在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。
$ I5 n* ], ?: s F. K1 H/ [使用方法如下; l" B1 P8 Z! b$ @. n$ Q( n1 A8 _
3 k, y( g) {0 G( l
Offset file unzipper 0.3.3% Q' q1 j0 q# R0 {* A& y. r8 i
by Luigi Auriemma- s' Y2 j1 m" t) P7 e2 V
e-mail: [email protected]- h% U8 T* K, G. ~' \$ L
web: aluigi.org
0 f# |$ @8 F/ J0 C$ a, v6 T
" y+ l2 D! @! Y0 Q! O( z8 i, H# U) y; j6 f
Usage: offzip.exe [options] <input> <output/dir> <offset>6 u5 }3 K7 ]# R- z2 p9 ~ k) ^& A
% j4 X4 }* y. F
Options:
: P6 \5 d, H+ Q# _. N-s search for possible zip/gzip data in the input file, the scan starts
7 U3 X! @+ H o, m from the specified offset and finishs when something is found
, ]; V2 E- {4 ^* o the output field is ignored so you can use any name you want2 U% n5 O' G" C
-S as above but continues the scan (just like -a but without extraction)
- N$ A# n( |$ A+ A: O-a unzip all the possible zip data found in the file. the output1 J) P& [ h* T( J; N8 I# j
directory where are unzipped the files is identified by <output>" w# N, u, n4 L+ q
all the output filenames contain the offset where they have been found/ g% h- g" i! o# E& `' `8 J5 N
-A as above but without unzipping data, the output files will contain the C/ s, ]5 a3 Q9 F" H
same original zipped data, just like a simple data dumper, ^; G' E( `' m# y% b3 T
-1 related to -a/-A, generates one unique output file instead of many
" Y0 B3 @0 i2 s5 G0 |# q. t-m SIZE lets you to decide the length of the zip block to check if it is a; Q4 u) L: }$ l. p
valid zip data. default is 32. use a higher value to reduce the number
3 l$ h4 Y/ i o3 h of false positive or a smaller one (eg 16) to see small zip data too
3 |- o: i0 ?& B-z NUM this option is needed to specify a windowBits value. If you don't find
8 t1 F7 X" K% }# q1 p) _; F- e zip data in a file (like a classical zip file) try to set it to -15
; w! `0 h. j6 q. z D6 V valid values go from -8 to -15 and from 8 to 15. Default is 155 n6 y3 }. ]; x) A
-q quiet, all the verbose error messages will be suppressed
& B. Q5 ~8 x; A6 K* Y# Y, m( V-r don't remove the invalid uncompressed files generated with -a and -A
5 G: t9 j* A) ~; P" U1 D/ b) I8 Q
# ~! }* N6 A+ ~/ L% R6 ?, RNote: offset is a decimal number or a hex number if you add a 0x before it
( W0 |) {5 z: N4 I! V examples: 1234 or 0x4d2
3 j9 F$ R+ e' L v% Q: [+ Q4 [ a& B) ~
原文8 s+ U# ^) ?9 t3 ^
http://aluigi.altervista.org/mytoolz.htm |