很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。
5 V5 r; T! Y# y" c8 j" b- X很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。
8 s+ t7 ~/ X: X, H1 D' y在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。( h, H" ?8 ?0 O
使用方法如下
' m/ |! |, C G L* X6 w: z8 N) o- r- c/ e, `
Offset file unzipper 0.3.3
) s6 p6 M1 j3 {# i8 Sby Luigi Auriemma8 ~1 P3 h9 ~& Z' y8 }4 x; R
e-mail: [email protected]2 Z9 R: Q( q! K# n
web: aluigi.org. W$ X% Z& D0 k# ^- J3 v9 j( ]) t
$ u# U8 o0 D0 r/ _, |/ r6 H" N; B2 d( ~$ q
Usage: offzip.exe [options] <input> <output/dir> <offset>; l& z7 }, s& {2 x k$ ~* x
: u& g& C! u6 {. }. S: oOptions: ^' o# o5 a7 [& x# i' H# @+ U
-s search for possible zip/gzip data in the input file, the scan starts! f9 N7 }1 I' p. N0 D, h9 V: H. V
from the specified offset and finishs when something is found
) v/ N4 u/ q& N% R. F9 r the output field is ignored so you can use any name you want
7 o) u. M6 k* x# ?% m-S as above but continues the scan (just like -a but without extraction)
4 p6 I4 C9 @# U& [& ^. x# N0 B-a unzip all the possible zip data found in the file. the output0 U( ^( g% U% t( ?
directory where are unzipped the files is identified by <output>- L7 F( I: W. u# ~- Y
all the output filenames contain the offset where they have been found
1 J, S! F+ E$ B-A as above but without unzipping data, the output files will contain the
) x3 {$ h, @$ r/ K- t! U$ H% V same original zipped data, just like a simple data dumper7 s4 T2 c! n/ w, }3 \" i) ^% E
-1 related to -a/-A, generates one unique output file instead of many
6 o2 w4 i3 r9 H) j3 w) ]! a-m SIZE lets you to decide the length of the zip block to check if it is a9 N) p7 Z5 T8 a* q( l' `7 q3 K
valid zip data. default is 32. use a higher value to reduce the number- h, b4 Y6 u& \" g/ m# Y
of false positive or a smaller one (eg 16) to see small zip data too8 i" _5 I, A2 o/ T- ~) T
-z NUM this option is needed to specify a windowBits value. If you don't find9 Y. j4 L0 q$ ~! _/ M6 c9 S
zip data in a file (like a classical zip file) try to set it to -153 _/ |- S K: X: c9 h
valid values go from -8 to -15 and from 8 to 15. Default is 15
. s* n. H- U ?4 l3 r-q quiet, all the verbose error messages will be suppressed
- R* t/ r+ G, w/ f$ H9 e-r don't remove the invalid uncompressed files generated with -a and -A l" x8 g, M* O! @4 q* x0 k
$ ~; {2 x- l7 kNote: offset is a decimal number or a hex number if you add a 0x before it
6 t/ O5 G4 h5 S2 E* s examples: 1234 or 0x4d2
3 w% N9 @8 U( W! y+ Q( ?6 N, V
( y" J J1 Q4 g5 V4 q原文$ {! q' H- B. v5 {- `
http://aluigi.altervista.org/mytoolz.htm |