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.



62
63
64
# File 'lib/rex/zip/blocks.rb', line 62

def initialize(compinfo)
  @compinfo = compinfo
end

Instance Method Details

#packObject



66
67
68
69
70
# File 'lib/rex/zip/blocks.rb', line 66

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