很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。
) ^/ W/ G* |4 Q4 Q. x0 K9 p很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。
, e9 d1 ^, B5 V2 R8 K在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。3 ~: f! W/ m- [# F2 D$ u, V
使用方法如下
- s0 k: C) A. @3 W
, I u. I& K( L7 HOffset file unzipper 0.3.3( t2 z8 m. I1 U
by Luigi Auriemma' f# J. q1 F+ \" ^
e-mail: [email protected]
1 J4 X! _5 |* k4 R2 Nweb: aluigi.org
3 M0 t" G1 @+ ~6 O; u; Y' D9 T/ o- r1 M; G4 H" M' |/ m2 P
/ X: T) T9 U5 s
Usage: offzip.exe [options] <input> <output/dir> <offset>+ T1 X; _8 i2 |6 b
' o9 y* o& _& t8 p7 |. _ W
Options:6 q) h* h5 w5 F2 A
-s search for possible zip/gzip data in the input file, the scan starts* T+ B f/ g Q2 K9 V
from the specified offset and finishs when something is found
: g5 g# D5 ]7 o4 t Y the output field is ignored so you can use any name you want
! `7 F' M0 }: s- X" V. c-S as above but continues the scan (just like -a but without extraction)
( e6 n; T. E- }8 j k; A' i. R, J-a unzip all the possible zip data found in the file. the output
# s1 |& g1 T! I3 q: j4 M directory where are unzipped the files is identified by <output>! y5 P- v F7 U4 P
all the output filenames contain the offset where they have been found5 M) D' y' ~2 f/ b, m! Q5 N
-A as above but without unzipping data, the output files will contain the. Z8 D D2 p8 U' K
same original zipped data, just like a simple data dumper
* b& i9 o7 d1 Q! W-1 related to -a/-A, generates one unique output file instead of many
& Z, \8 ~, v8 V A. d' L( H: f: p8 |-m SIZE lets you to decide the length of the zip block to check if it is a" H; O2 F' B4 ^& j$ I# h( i$ v
valid zip data. default is 32. use a higher value to reduce the number
0 ^: }& D+ i' T of false positive or a smaller one (eg 16) to see small zip data too1 c! Z, g V' K* P" y$ @$ [+ a; }
-z NUM this option is needed to specify a windowBits value. If you don't find M. ^) ~8 e4 l$ v+ f# ?- k% q
zip data in a file (like a classical zip file) try to set it to -15
9 J m* W9 @- W b. @5 q% E O valid values go from -8 to -15 and from 8 to 15. Default is 15/ ]7 }9 |+ Q* `$ [; X) ?+ X% J
-q quiet, all the verbose error messages will be suppressed' V; g& q; v& R+ h
-r don't remove the invalid uncompressed files generated with -a and -A
8 q: x8 H% t6 F( j# q2 r
4 k7 M2 X( A# K7 G5 }3 i7 eNote: offset is a decimal number or a hex number if you add a 0x before it3 N8 y0 _- t" C* @- E- z) X
examples: 1234 or 0x4d2
' ]$ K( h" [* o! B1 x J! _' y7 r- b6 D
原文
( A9 }: t7 ]' Y- u$ f( J* S0 `* [http://aluigi.altervista.org/mytoolz.htm |