很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。- k( [+ q( V/ B: n
很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。* b, Y7 g2 |1 X
在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。
Q- Z! Z& K) Y. U7 Y使用方法如下
a* [1 i& b: Y# B! r7 a$ ?7 H1 z7 R- f" A+ T5 j v* r. @
Offset file unzipper 0.3.3- y" G$ K6 R5 T' S5 ?. o; W
by Luigi Auriemma
6 n. g) y' Z0 V! L2 le-mail: [email protected]$ ]% b @/ I1 }. T$ d
web: aluigi.org
: W3 n8 l6 K0 m) T% x& g: @0 x" ?4 r B1 D) n3 \- b
# N6 _4 x( h- c3 j7 w5 r, X: SUsage: offzip.exe [options] <input> <output/dir> <offset>9 s& F2 Z. Q8 ^9 \5 z8 ]; Q
/ @, ~* X$ {( K0 b4 eOptions:
& F0 {( l; D4 J3 D8 l8 l# h" M, z) F-s search for possible zip/gzip data in the input file, the scan starts4 z4 u3 q9 X3 M6 V
from the specified offset and finishs when something is found
( i- P( ~; u' d& g5 w; Z/ X the output field is ignored so you can use any name you want
1 E% r; |$ \4 B-S as above but continues the scan (just like -a but without extraction)
% S# J0 I% F/ X9 r/ a+ I" s-a unzip all the possible zip data found in the file. the output" V% p3 H* A p) J
directory where are unzipped the files is identified by <output>
2 k. k% b# r3 P1 D2 N all the output filenames contain the offset where they have been found
3 x$ A9 b8 \4 E" x8 n; {+ e4 D, i-A as above but without unzipping data, the output files will contain the
- y, O) D6 ^9 G! ?3 Q s! V& h) I same original zipped data, just like a simple data dumper! @: A* g5 X7 F. z/ Y E
-1 related to -a/-A, generates one unique output file instead of many+ \- }7 S" N6 W% n1 ?- _
-m SIZE lets you to decide the length of the zip block to check if it is a& S. Z3 r) ]! w% g
valid zip data. default is 32. use a higher value to reduce the number# t7 _- H7 V- G& w+ w
of false positive or a smaller one (eg 16) to see small zip data too
2 r1 n1 m6 V# W$ g-z NUM this option is needed to specify a windowBits value. If you don't find
& d/ }6 i5 _: H* _! ^ zip data in a file (like a classical zip file) try to set it to -152 ^5 ^! H4 f# B, s
valid values go from -8 to -15 and from 8 to 15. Default is 15
8 N8 r% P- B J$ h' I-q quiet, all the verbose error messages will be suppressed0 X$ M" b+ A$ B( V
-r don't remove the invalid uncompressed files generated with -a and -A
X/ A' I& p1 o& M
" h$ O. |/ ^1 K* ?: i, w& MNote: offset is a decimal number or a hex number if you add a 0x before it
0 C: o$ l' w+ } examples: 1234 or 0x4d2
5 D) [- m1 w8 p5 M9 _; b& v! F# [7 m/ k& B& R- X+ a
原文7 v) B1 l, Q6 O& O
http://aluigi.altervista.org/mytoolz.htm |