|
|
楼主 |
发表于 2018-4-29 23:45:41
|
显示全部楼层
8 B" ]! f: m; s2 Z' Z2 D
Offzip & Packzip log' k, `- E+ m1 H
' T& X: t% |- I8 y( ^
/ z. `3 y, F q' PC:\Offzip>offzip.exe -a config.bin . 0/ r }" n- j6 B1 m0 t: X( C. |
/ {3 J5 J# S6 M8 H! y1 B
Offset file unzipper 0.3.3
& A+ \$ p) f- c2 Hby Luigi Auriemma
" L" |3 s' `9 Oe-mail: aluigi@autistici.org
/ A! y3 r& S3 q9 X, I% ^7 R5 p( yweb: aluigi.org
$ [4 l, O& i9 A+ _
: d$ l, S* O. |- s2 g! \- open input file: config.bin7 Z7 B0 b2 o0 B6 s
- enter in directory: .
7 ^% S8 ~4 ?. k D, E& E2 Y- zip data to check: 32 bytes+ s) D; w v8 t: z5 y
- zip windowBits: 158 B0 ?% E e: U" j/ |
- seek offset: 0x00000000 (0)
* j; h% [" ?9 l. a3 Y. Z/ q$ G1 d- C7 _
+------------+-------------+-------------------------+( q& X- A1 I6 D3 A
| hex_offset | blocks_dots | zip_size --> unzip_size |
+ c8 ^8 C$ u8 ?3 t& e+------------+-------------+-------------------------+, q1 ` H. g s/ s0 @7 U
0x000000d8 .. 3600 --> 24214
0 o# O! r- p$ H# D
' ~+ N9 K; a% B) ?( }4 ]7 i; W1 F8 R r4 @% Z- ~& s$ W) _
- 1 valid zip blocks found- M+ _3 ?# H8 z1 f; I6 J; q
5 ^) M# i0 j5 O% _/ _
C:\Offzip>
; P5 x+ A/ J; j* G: G( n注:第一行是命令,其中config.bin 是光猫导出的配置文件7 h7 }( L6 s% m
) w( ?. J/ {: [: g3 H% C
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 n" R4 l( X4 k; x& ^6 ZOffzip & Packzip usage
3 F% l ?: G/ I" T
' J9 s6 |9 y8 Y4 C; XC:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI>
" W1 c& b0 n4 `. L8 e9 y C9 S
4 R! B L, _0 @9 ]1 c" [& B. l默认情况下,Windows PowerShell 不会从当前位置加载命令。如果信任此命令,请改为键入“.\offzip.exe”。有关详细信息,请参阅 "get-help about_Command_Precedence"。
& E" w1 s, X- E, jPS C:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI> .\offzip.exe4 | l! v$ P3 j b7 u
' \6 ~2 |8 g+ ~, U$ cOffset file unzipper 0.3.3
1 p% w. V. v- p) A; s* X; p7 ], yby Luigi Auriemma
: G" X# J" r! M7 _2 _) ~e-mail: aluigi@autistici.org8 W% N8 |* N4 B7 K) a8 e& Q
web: aluigi.org" o/ _* d' }, E4 w7 _7 v
' s" ~/ @1 ^; t& r5 g
' Q* K- t) |7 y3 s' ]. t$ z
Usage: C:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI\offzip.exe [options] <input> <output/dir> <offset>/ F8 q, \0 I2 g d$ v
& ?8 ]/ P7 Y- s# A7 I
Options:
8 e5 m5 R, T0 A$ c w+ w-s search for possible zip/gzip data in the input file, the scan starts
: D# i/ U1 i9 m p from the specified offset and finishs when something is found
6 A. l. @! H$ w the output field is ignored so you can use any name you want* ^3 b7 l: F# p9 m! F y6 l
-S as above but continues the scan (just like -a but without extraction)
+ }. z2 C8 E" V1 S3 H8 w' e-a unzip all the possible zip data found in the file. the output h' s F0 F, v- o( W( ?, w# A
directory where are unzipped the files is identified by <output>7 o( Z: h; d6 T! L( _- W
all the output filenames contain the offset where they have been found, k* l. A; d7 I1 u; L# C
-A as above but without unzipping data, the output files will contain the4 G& T5 S/ V" s: W3 a* h. ^/ L6 s1 V
same original zipped data, just like a simple data dumper% Y0 c8 p% ^' @$ ^0 l. I
-1 related to -a/-A, generates one unique output file instead of many: l5 y, [+ h, i8 j
-m SIZE lets you to decide the length of the zip block to check if it is a
% D8 ^( ^. _* i/ O valid zip data. default is 32. use a higher value to reduce the number4 J/ h' H- ^; X% c q# e8 t
of false positive or a smaller one (eg 16) to see small zip data too
7 M% F8 ^1 V6 L& k6 H-z NUM this option is needed to specify a windowBits value. If you don't find5 e# e" b; |2 |0 s
zip data in a file (like a classical zip file) try to set it to -15
" T2 C8 K8 b, u* K valid values go from -8 to -15 and from 8 to 15. Default is 15
! b% N( e/ m/ a0 [ T; ]# D) N-q quiet, all the verbose error messages will be suppressed4 \5 t. m: M% R+ w5 u8 ]( ^& }
-r don't remove the invalid uncompressed files generated with -a and -A
2 y) r( k) h& l3 y; U0 Q
. i0 Z' x7 s1 A0 D' kNote: offset is a decimal number or a hex number if you add a 0x before it, U# p- n( e2 R5 d) i# ?9 L @' w
examples: 1234 or 0x4d2% w7 p' r z f8 _
1 u0 C* d" `0 z
0 R: B) w2 H: c) f; T5 jPS C:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI> .\packzip.exe8 S( i' |4 k2 o1 Z# x) T
G9 W5 N3 i" V* m
PackZip 0.1.1
2 |( \# T1 H2 ^9 Xby Luigi Auriemma5 w9 m# W5 l- B% J" i
e-mail: aluigi@autistici.org
1 H$ F# `# }- w' kweb: aluigi.org
! P8 d. G, {6 J& T5 H
& s2 L2 C% B9 y: o" E: |
& `/ S+ ?' A' O6 r1 {* w, `( SUsage: C:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI\packzip.exe [options] <input> <output>
" S5 ^5 p. ]' _3 H2 e1 m9 L0 u0 z: T. c2 w
Options:9 h5 R; W7 W. ]) h5 `
-o OFF offset of the output file where storing the raw zipped data% ^* C4 y0 ^+ T9 C
-c recreate from scratch the output file if already exists
4 ^2 a9 B: I7 x# v9 ?7 v-w BITS windowBits value (usually -15 to -8 and 8 to 15), default is 15
9 O l- u5 h- L _# ]3 p! Y/ |8 K/ q! F3 G/ J8 m
by default this tool "injects" the new compressed data in the output file if+ V; v' W: x4 }1 F) R1 T
already exists, useful for modifying archives of unknown format replacing only
- A4 |% Z. o! |8 f% {8 L) l zthe data which has been modified without touching the rest |
|