aluigi (Post subject: Re: Watchmen - The end is nigh part II)

it's simple, if you want to see if a file contains one or more zlib/inflate blocks use:

Code:
------------------------------------------------------------------------------------------
offzip -S file.dat 0 0
offzip -z -15 -S file.dat 0 0
------------------------------------------------------------------------------------------

the second command with -z -15 is needed in case the first one finds nothing.
indeed exist 2 types of "inflate" blocks which are called Zlib (RFC 1950) and raw (RFC 1951).

if you already know the exact offset of the block you want to unpack use:

Code:
------------------------------------------------------------------------------------------
offzip file.dat output.dat 0
offzip file.dat output.dat 0xYOUR_OFFSET
------------------------------------------------------------------------------------------

if you want to extract any compressed block available in the file use:

Code:
------------------------------------------------------------------------------------------
offzip -a file.dat c:\output_folder 0
offzip -z -15 -a file.dat c:\output_folder 0
------------------------------------------------------------------------------------------