Class: Rex::Zip::DataDesc

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/zip/blocks.rb

Overview

This structure is sometimes stored after the file data and used instead of the fields within the Local File Header.

Constant Summary collapse

SIGNATURE =
0x8074b50

Instance Method Summary collapse

Constructor Details

#initialize(compinfo) ⇒ DataDesc

Returns a new instance of DataDesc.



65
66
67
# File 'lib/rex/zip/blocks.rb', line 65

def initialize(compinfo)
	@compinfo = compinfo
end

Instance Method Details

#packObject



69
70
71
72
73
# File 'lib/rex/zip/blocks.rb', line 69

def pack
	ret = [ SIGNATURE ].pack('V')
	ret << @compinfo.pack
	ret
end