很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。# J- V1 K/ y4 c. L2 L: }
很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。
. T! V w9 m' Q( _在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。
. K( Q3 l) h/ k( E+ z2 q- c, J使用方法如下. R1 C/ g+ ?8 M# f7 b4 }# l9 X
2 }+ {$ q% X- uOffset file unzipper 0.3.3
0 c& O0 ?, K( x p: u- s/ u0 e# b8 cby Luigi Auriemma9 j) c; ?- T c* M- \. y
e-mail: [email protected]
) e3 Z- g6 b/ P* ~* t4 pweb: aluigi.org) G! G2 [% Y8 w5 b) [3 q
5 F7 J- \$ T- Z0 B% ]- q" P5 A
2 M9 o+ L* q1 L( _- m2 C7 IUsage: offzip.exe [options] <input> <output/dir> <offset>
0 ~% R4 \* ~' D3 |, {2 B" e1 T; u$ ]2 u r$ d; L' h# Y
Options:
: v9 |) q4 [) L \-s search for possible zip/gzip data in the input file, the scan starts
0 |) E2 C$ e6 K) }6 ` from the specified offset and finishs when something is found
" c/ V5 P8 X% y* ^, U the output field is ignored so you can use any name you want' ? n0 B- ~+ Q6 g
-S as above but continues the scan (just like -a but without extraction)/ B" f5 W; f8 A4 ~9 O. k; F/ U
-a unzip all the possible zip data found in the file. the output
8 B( q5 U" {7 o% n9 ` directory where are unzipped the files is identified by <output>* B9 ~* Y7 S" i1 l( J3 O
all the output filenames contain the offset where they have been found
( w, P4 O* @/ h-A as above but without unzipping data, the output files will contain the
' v# I6 i5 p; \+ N! X0 c$ O9 d same original zipped data, just like a simple data dumper% K) Y$ E' E7 x) f5 L$ ~
-1 related to -a/-A, generates one unique output file instead of many
* O: K3 c* Z) Z1 Y5 o-m SIZE lets you to decide the length of the zip block to check if it is a
1 F8 N+ D" _: e1 c3 ?8 x t valid zip data. default is 32. use a higher value to reduce the number
7 f; n. A+ P+ l0 \8 Z of false positive or a smaller one (eg 16) to see small zip data too4 H; z- N+ L4 N" \& u
-z NUM this option is needed to specify a windowBits value. If you don't find. H8 _! D L {4 }1 i6 K/ ^$ P
zip data in a file (like a classical zip file) try to set it to -15/ Q1 D, f' [! m/ ^
valid values go from -8 to -15 and from 8 to 15. Default is 15
' P( f* s- G3 x- o-q quiet, all the verbose error messages will be suppressed. @; M& B8 M( ~! X; N2 K
-r don't remove the invalid uncompressed files generated with -a and -A/ u/ a3 a4 o' T9 i4 x
: P$ s7 H" |* f; Q+ N4 LNote: offset is a decimal number or a hex number if you add a 0x before it
/ t; m5 C# t8 `* K: q6 w7 I examples: 1234 or 0x4d2
4 P* S+ F7 M$ {( o0 Q
* W/ ^% k3 v" ?6 G2 s3 `# d原文
" r; C ?: y$ h2 ^3 Khttp://aluigi.altervista.org/mytoolz.htm |