很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。7 y+ f {! d, t# `6 a6 f1 p
很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。! R, D: q4 b" ~
在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。4 n) ^* s) T2 C! J- ]+ Y
使用方法如下
# B/ S. t5 u/ b6 Q# P
6 T4 |, t7 ?% BOffset file unzipper 0.3.3
# z( \5 m# m9 y! w) v7 a$ yby Luigi Auriemma
+ h/ n, ^5 r0 ?8 me-mail: [email protected]4 k3 u& z% t# ]5 Z( @
web: aluigi.org
$ C5 c$ o9 e- x4 ]. D* M4 E: Z% u7 n0 |
" ^ ^. f5 }- F7 _5 HUsage: offzip.exe [options] <input> <output/dir> <offset>) Y1 D) F3 _7 @3 Z9 @2 D- T& i
: g- Q4 s9 `, ]" ~6 [ M' h% E4 W
Options:
4 q6 n* J: z; @" P9 m- q1 s* l# ]-s search for possible zip/gzip data in the input file, the scan starts
v$ |) s M* S. j from the specified offset and finishs when something is found* A9 x& d% g6 e0 F4 S- r! b: Y# j
the output field is ignored so you can use any name you want
* i8 r p/ y5 T* Y. I9 q& U9 | F-S as above but continues the scan (just like -a but without extraction)
! A! ] u; r; G2 J( x0 f-a unzip all the possible zip data found in the file. the output# q% _2 Y7 E9 w: s* w+ ^3 c
directory where are unzipped the files is identified by <output>; s1 C9 E7 u+ i) E- P% @# a' |
all the output filenames contain the offset where they have been found6 p' k/ t, Z) V/ R$ I( @
-A as above but without unzipping data, the output files will contain the
8 M/ }" k& q& Q: E5 O same original zipped data, just like a simple data dumper
- Y9 N! L$ Q! _, \8 A-1 related to -a/-A, generates one unique output file instead of many0 ?' N7 b8 A4 |, V; n
-m SIZE lets you to decide the length of the zip block to check if it is a1 _) [' \; U5 A" S( n0 G$ ~) u5 B" C
valid zip data. default is 32. use a higher value to reduce the number7 h. u" l/ w+ ^& ~ p( e. K
of false positive or a smaller one (eg 16) to see small zip data too
! T) |. \' l$ e- j. C-z NUM this option is needed to specify a windowBits value. If you don't find8 M' M. L8 f0 H& h- E
zip data in a file (like a classical zip file) try to set it to -15
) w2 i" D! t- v% F) v valid values go from -8 to -15 and from 8 to 15. Default is 15% e* R. P2 I4 J) h" B9 l! y- B* _
-q quiet, all the verbose error messages will be suppressed
. {' O3 y( l7 Q, L: n% e6 X9 C* q- a2 l-r don't remove the invalid uncompressed files generated with -a and -A/ @6 y- w3 L) L1 i, ^7 s
0 N/ @6 V& K+ z$ v1 p- k6 c$ ~Note: offset is a decimal number or a hex number if you add a 0x before it
9 {- l/ t! S* h) J( v& ~$ ^ examples: 1234 or 0x4d2
0 m* O: M/ r( R3 q! Q1 ]2 L: W6 S( W6 u" x* Z( _
原文( o+ U. c/ n k/ o' f8 J- S' ]
http://aluigi.altervista.org/mytoolz.htm |