|
|
楼主 |
发表于 2018-4-29 23:45:41
|
显示全部楼层
# j0 b! U) } p5 x
Offzip & Packzip log6 q. d8 n0 Z* c& U& Z
& T8 b' j8 I9 z. V6 e- z9 N+ |
- ?3 y6 F/ P o$ d- b9 e l( y q5 ~( iC:\Offzip>offzip.exe -a config.bin . 0* [* q0 C! m# y( v( v
w3 n# @7 B3 J" w4 ?
Offset file unzipper 0.3.3/ m! Q' a. C% N V' P
by Luigi Auriemma
9 ]- ?! R! x' w- e: Ve-mail: aluigi@autistici.org0 ?0 g7 O* f" E9 U* W( F' ~* L
web: aluigi.org
$ ^# x9 Z1 g+ e$ p
& J' f2 t" {# u. C/ \* k$ \- open input file: config.bin
/ b4 n1 o* o: @2 N$ r% B- enter in directory: .+ M" Z: Q- V) ^7 A1 |! S7 ?
- zip data to check: 32 bytes1 a9 R" C C1 ^9 V7 X5 p. q
- zip windowBits: 153 h" j( }4 o: R8 n* z% _4 I) L
- seek offset: 0x00000000 (0)
% [: r- z z9 o# ^
0 n! R4 w# Q* T: Z+ f! y. z2 M+------------+-------------+-------------------------+
; ^# k. s$ a2 N5 Y, c4 T O8 T| hex_offset | blocks_dots | zip_size --> unzip_size |
4 X' W! s0 ^9 k' M6 c) R7 M9 E) y7 ^+------------+-------------+-------------------------+
4 Y M2 o# t, U& {$ D 0x000000d8 .. 3600 --> 24214$ b: p+ ?+ |' r* @3 w
4 l- Q1 S0 L T
* _! S/ O! m8 ]! a- l8 s( o% Z- 1 valid zip blocks found
2 n4 G) Y* q0 S' f! V5 E, [+ {- a8 U0 g
C:\Offzip>
$ t; _2 j2 p, F& i9 P注:第一行是命令,其中config.bin 是光猫导出的配置文件
8 s# [7 F( x6 i% \& S, G! u2 S
- T) r2 @: M5 e3 m+ D- E------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: G! r+ M# h/ R0 D$ k, r1 d
Offzip & Packzip usage
. g/ ^8 | ^3 G1 l7 w
/ ~8 N P( C' t9 w- Y) IC:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI>; I: J4 J4 c$ `: H
" L& j5 S, |3 V0 c! U6 z默认情况下,Windows PowerShell 不会从当前位置加载命令。如果信任此命令,请改为键入“.\offzip.exe”。有关详细信息,请参阅 "get-help about_Command_Precedence"。) q4 ]. N3 n g& L0 h9 m
PS C:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI> .\offzip.exe) L+ |$ x; k( s
" J3 h( y1 W/ Q6 V" D
Offset file unzipper 0.3.3) L- r3 ~, {. ]! K
by Luigi Auriemma
5 T3 e3 O' T$ j& E4 D7 C. Oe-mail: aluigi@autistici.org
7 d# R" t' `/ eweb: aluigi.org
6 Q# M$ b4 E" Z7 p) a5 [3 J5 q+ h* x* B
( ~! c1 z$ Z5 t9 M- P
Usage: C:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI\offzip.exe [options] <input> <output/dir> <offset>
- q. O, G8 w6 z3 L# Z
7 g6 E1 _/ M; T' T* M$ WOptions:
1 ^3 G; s. ^) H7 H5 w-s search for possible zip/gzip data in the input file, the scan starts: ^* H4 {7 `- }- L. K
from the specified offset and finishs when something is found
6 f' N1 K' v6 {0 E3 J the output field is ignored so you can use any name you want
/ _* l$ o1 |4 r$ r-S as above but continues the scan (just like -a but without extraction)$ B) g& l0 ^1 b4 X" p
-a unzip all the possible zip data found in the file. the output- u1 s8 k" P* u7 g4 {- x. Z1 {/ v0 @
directory where are unzipped the files is identified by <output>
3 ?( o7 ]4 i4 ^ all the output filenames contain the offset where they have been found
$ j1 m) w( ?1 M0 P) g/ q, i/ x. E- o-A as above but without unzipping data, the output files will contain the4 ^- }( b: I+ \ K, b1 h
same original zipped data, just like a simple data dumper
$ `: o& [. M& N7 U1 f$ o- }-1 related to -a/-A, generates one unique output file instead of many
- c$ O2 u, R o$ P" `0 f- Z! S-m SIZE lets you to decide the length of the zip block to check if it is a- {2 u: R& _# }; X' A, F2 W# |- o" b
valid zip data. default is 32. use a higher value to reduce the number2 i+ \; Z- F! \8 o2 A. D
of false positive or a smaller one (eg 16) to see small zip data too( q+ S& Q( w- R% B8 h
-z NUM this option is needed to specify a windowBits value. If you don't find& [7 N$ w% ?& T6 j
zip data in a file (like a classical zip file) try to set it to -15
% }* C5 N; d" {' @) y4 Q, G- u valid values go from -8 to -15 and from 8 to 15. Default is 15
. U- [) `" \2 E8 D# y O-q quiet, all the verbose error messages will be suppressed* k% f- s3 `) y+ R
-r don't remove the invalid uncompressed files generated with -a and -A
* p: X' s6 `: |, f( w3 j C) i' J8 @+ X6 [
Note: offset is a decimal number or a hex number if you add a 0x before it
@! }$ o1 I! ~8 P8 V M1 R/ _ examples: 1234 or 0x4d2
0 K" j% X5 n# d; q5 P
1 Y) m! g# K5 ]% s* M/ ?; ~' Q% m- e# b0 j3 z, [
PS C:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI> .\packzip.exe
- n8 ~4 u. b- ^/ L1 a9 a) i. s0 ?. R H' W
PackZip 0.1.1$ k. F3 z7 s' e% P# ~
by Luigi Auriemma! e! A4 n; [+ G8 Y! X
e-mail: aluigi@autistici.org
: Y6 u5 O2 B, H9 R5 d4 ^2 C' V2 {web: aluigi.org
6 g8 e. W) V+ w* @
}! P$ P3 A8 s9 |& ]* z
4 [1 G1 v9 Z! bUsage: C:\Users\li\Desktop\Offzip & Packzip UI\Offzip & Packzip UI\packzip.exe [options] <input> <output>& p5 ?) b2 e. o& I9 p
! @* m- ]# r; z, H8 YOptions:
4 r j3 Z# W! w0 `+ O, Z-o OFF offset of the output file where storing the raw zipped data
B$ N3 l' K2 | e1 s5 g-c recreate from scratch the output file if already exists
1 `5 [3 y/ e# _. D6 g-w BITS windowBits value (usually -15 to -8 and 8 to 15), default is 15' W7 K, F! B. D
Q7 s0 Q2 O/ @/ K
by default this tool "injects" the new compressed data in the output file if
3 G6 B0 R* j" I/ o( D. Talready exists, useful for modifying archives of unknown format replacing only4 A( d5 P3 ~! K+ ~2 L/ E
the data which has been modified without touching the rest |
|