很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。& E& U' }# g& _0 p
很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。
8 W1 L/ T; C6 Q在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。$ g+ U" y. U5 z. o
使用方法如下4 p E& B$ s. V* X
8 V) ^1 y0 }# _Offset file unzipper 0.3.3
- G ]) K0 E; Yby Luigi Auriemma
* `" J) C1 c5 S- x4 ge-mail: [email protected], x5 x8 C/ s- f R0 e
web: aluigi.org
5 }) M. v' z2 N! h5 j" N7 x! ]" K* i; u: S' |3 y$ s! {
K& M, s2 ?5 T( y. K9 r
Usage: offzip.exe [options] <input> <output/dir> <offset>7 c( h9 L8 ^# y
* Y' T. V! _3 ?
Options:) x+ p( B: s) D$ k7 c5 I5 H
-s search for possible zip/gzip data in the input file, the scan starts$ Q# [9 Q0 ~5 V& p: g' T
from the specified offset and finishs when something is found; C6 X- @( x- i" r$ S
the output field is ignored so you can use any name you want4 c; g/ a5 I4 N1 L9 z( ^
-S as above but continues the scan (just like -a but without extraction)
" u8 Y4 \4 v# I8 o$ L-a unzip all the possible zip data found in the file. the output# i; y& L' c* L2 T0 ~$ b
directory where are unzipped the files is identified by <output>
* t/ z6 Q: |1 w% m" Z& ?* W all the output filenames contain the offset where they have been found3 b% ]# R8 @' J1 g. B
-A as above but without unzipping data, the output files will contain the; N/ ~* N2 H* S3 h0 h( o% {
same original zipped data, just like a simple data dumper
2 @) k0 V) j; v% k9 i) P* }3 U1 S9 h-1 related to -a/-A, generates one unique output file instead of many& t; Y* X/ u" F: U$ }) ?& P
-m SIZE lets you to decide the length of the zip block to check if it is a! N+ W- @ W6 y2 V
valid zip data. default is 32. use a higher value to reduce the number& S& q) Z" O. x; j
of false positive or a smaller one (eg 16) to see small zip data too
- u( O. G6 b5 @9 j4 Z-z NUM this option is needed to specify a windowBits value. If you don't find2 u: r" Z5 m* l Q( V7 r1 p( ?
zip data in a file (like a classical zip file) try to set it to -15+ {/ K; D& O; c1 y
valid values go from -8 to -15 and from 8 to 15. Default is 15* U! X6 ?7 [, g( j
-q quiet, all the verbose error messages will be suppressed
1 E. @" D" G, ^+ n/ T# V8 j ?-r don't remove the invalid uncompressed files generated with -a and -A8 a* s/ ~, g4 P% @0 A% V
( V2 y' D/ z# \8 z
Note: offset is a decimal number or a hex number if you add a 0x before it3 D I% F; I% ~9 o7 r
examples: 1234 or 0x4d2) \. r% f; M ?) v( Q
7 e8 j4 _+ u1 s原文
2 l& V3 x8 E5 o8 xhttp://aluigi.altervista.org/mytoolz.htm |