很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。1 ^, G* i: }$ P/ j
很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。. h. p# B+ x4 G w( e6 q) I) e
在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。# ^7 k1 Y9 ~ k& t* m& e. N" D
使用方法如下
( Q) i2 l+ }' i H( x
% C/ s* I7 l& L( J0 D1 y' A0 DOffset file unzipper 0.3.3
, G* L/ v' ^0 K, Kby Luigi Auriemma: F/ k0 G2 L2 t% j
e-mail: [email protected]) Q4 q ^- ]+ l8 }3 U- ^8 e% O- t
web: aluigi.org
: e0 L: N% | U! J7 s% ^* l
% V5 Z7 K8 G" O
. [* y E& p4 ^, w9 yUsage: offzip.exe [options] <input> <output/dir> <offset>
6 E. T7 V6 d1 _5 d! I9 z2 s2 q: n! w' p# E- `! c7 y( g2 Z
Options: V p# s+ }; \4 c/ X% e' h/ [9 ?5 b
-s search for possible zip/gzip data in the input file, the scan starts) j) e- n% N1 M" P/ F
from the specified offset and finishs when something is found
3 _# @ m" x7 C the output field is ignored so you can use any name you want
" u6 |. O$ Q/ V; I-S as above but continues the scan (just like -a but without extraction)
; q2 M) g: I7 Z1 n5 B, q* q-a unzip all the possible zip data found in the file. the output
: A. [: |$ O0 e directory where are unzipped the files is identified by <output>, c1 h% y+ t& W6 g2 A9 w( d+ s
all the output filenames contain the offset where they have been found, h5 ] g* Z- p" y% f/ ?9 N2 ]
-A as above but without unzipping data, the output files will contain the
' ]; I' v0 J$ `3 p4 w/ \7 ~+ u6 ] same original zipped data, just like a simple data dumper# w0 J7 i; E8 x; r& s/ ?
-1 related to -a/-A, generates one unique output file instead of many
8 Q7 [( a4 e6 R; t) s* C H-m SIZE lets you to decide the length of the zip block to check if it is a2 e" P4 R, o2 i* {
valid zip data. default is 32. use a higher value to reduce the number5 ^/ ]6 c4 S8 U: f8 K) E/ V
of false positive or a smaller one (eg 16) to see small zip data too2 H9 f! q- O; ^ N" Y
-z NUM this option is needed to specify a windowBits value. If you don't find
. G. E4 a* X, U) a zip data in a file (like a classical zip file) try to set it to -15
$ A, U! s/ N6 c! Z. Y valid values go from -8 to -15 and from 8 to 15. Default is 15
' |9 ` H9 w$ O- p4 \1 t# n-q quiet, all the verbose error messages will be suppressed
3 k* P6 Z) z! G- E2 E' u% k& f-r don't remove the invalid uncompressed files generated with -a and -A
- p5 {7 P @# O: `* c. S& [8 R9 @' ?+ M
Note: offset is a decimal number or a hex number if you add a 0x before it( K, O6 r+ h" G( V/ E0 j O# H) ?
examples: 1234 or 0x4d2 I/ ]6 H0 L7 O( o
& ~9 T) k& x w原文
+ P7 }: Y, e6 R/ jhttp://aluigi.altervista.org/mytoolz.htm |