很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。
( d/ g: U! L( m3 c3 l很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。 o% Z/ T' ]- A8 n/ a) Y
在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。
0 L6 E+ ~, h1 v5 K3 f0 S0 [+ |使用方法如下% U2 ]& X: b5 Q V4 H
0 l0 _+ D+ r; t' v; a( V
Offset file unzipper 0.3.3, y' V# c9 t1 H. [8 P; n
by Luigi Auriemma0 {# ?8 x& E2 s; a2 S$ |+ u
e-mail: [email protected]" M( `7 l# [ L. R
web: aluigi.org5 H6 p5 E& ]- p6 p1 r
* N4 R/ ^8 j1 p' C" J1 G, _
3 Y* _6 g- Y8 ]4 ?6 ?; {Usage: offzip.exe [options] <input> <output/dir> <offset>! Y, d' l) |5 n" @. b5 T% ^$ o8 A
, d, F1 {$ c. c( y
Options:
" B! ^% n! L* s2 j( O-s search for possible zip/gzip data in the input file, the scan starts [) }# y; A; e% ?1 g! X4 `
from the specified offset and finishs when something is found5 i8 d, |) g8 y1 I" E0 k& v7 o
the output field is ignored so you can use any name you want
# H$ _3 P% r& o3 V3 c+ G-S as above but continues the scan (just like -a but without extraction)
, `( q5 N, f1 z( p/ F, H' I-a unzip all the possible zip data found in the file. the output7 x- y* p* e2 O+ W4 C- D
directory where are unzipped the files is identified by <output>
! x, m' y! e7 q& g all the output filenames contain the offset where they have been found
- j) o9 }; r6 `% p+ M) g& L-A as above but without unzipping data, the output files will contain the u' F% \! \% M& O+ A
same original zipped data, just like a simple data dumper: l4 J0 c) B/ N a; y/ @6 k
-1 related to -a/-A, generates one unique output file instead of many
' q6 M2 H! w% ?8 t! z! ]-m SIZE lets you to decide the length of the zip block to check if it is a
; y6 s3 e3 [: P! K1 P$ v valid zip data. default is 32. use a higher value to reduce the number
, ?" c" Z1 C* C# W+ C of false positive or a smaller one (eg 16) to see small zip data too
& S" t- f7 b7 V* P+ P/ J7 j f-z NUM this option is needed to specify a windowBits value. If you don't find
1 E( @- s* P2 w+ L zip data in a file (like a classical zip file) try to set it to -15
1 @* `; s2 Z8 K: i; `7 [ valid values go from -8 to -15 and from 8 to 15. Default is 15
2 h7 ~0 L" B8 X# T-q quiet, all the verbose error messages will be suppressed
0 e* p- ]# y/ K2 |. f6 q" [-r don't remove the invalid uncompressed files generated with -a and -A
8 u- c% |+ A2 o# B; a; o# e- Q3 o! ~0 Q( V6 u5 K [
Note: offset is a decimal number or a hex number if you add a 0x before it
: ~4 }5 f$ S$ ~+ u/ N' q examples: 1234 or 0x4d2
, P5 c2 Q2 k+ q, t
& @9 f5 Y" f1 k& M$ ?原文
0 s8 q# f1 F" F. H: }. Shttp://aluigi.altervista.org/mytoolz.htm |