Module: Rex::Zip

Defined in:
lib/rex/zip.rb,
lib/rex/zip/jar.rb,
lib/rex/zip/entry.rb,
lib/rex/zip/blocks.rb,
lib/rex/zip/archive.rb

Defined Under Namespace

Classes: Archive, CentralDir, CentralDirEnd, CompFlags, CompInfo, DataDesc, Entry, Jar, LocalFileHdr

Constant Summary collapse

ZIP_VERSION =
0x14
GPBF_ENCRYPTED =

general purpose bit flag values

bit 0

0x0001
GPBF_IMP_8KDICT =

implode only

0x0002
GPBF_IMP_3SFT =
0x0004
GPBF_DEF_MAX =

deflate only

0x0002
GPBF_DEF_FAST =
0x0004
GPBF_DEF_SUPERFAST =
0x0006
GPBF_LZMA_EOSUSED =

lzma only

0x0002
GPBF_USE_DATADESC =

bit 3

0x0008
GPBF_DEF_ENHANCED =

bit 4

0x0010
GPBF_COMP_PATHCED =

bit 5

0x0020
GPBF_STRONG_ENC =

bit 6

0x0040
GPBF_STRS_UTF8 =

bit 11

0x0800
GPBF_DIR_ENCRYPTED =

bit 13

0x2000
CM_STORE =

compression methods

0
CM_SHRINK =
1
CM_REDUCE1 =
2
CM_REDUCE2 =
3
CM_REDUCE3 =
4
CM_REDUCE4 =
5
CM_IMPLODE =
6
CM_TOKENIZE =
7
CM_DEFLATE =
8
CM_DEFLATE64 =
9
CM_PKWARE_IMPLODE =
10
CM_BZIP2 =

11 - reserved

12
CM_LZMA_EFS =

13 - reserved

14
CM_IBM_TERSE =

15-17 reserved

18
CM_IBM_LZ77 =
19
CM_WAVPACK =

20-96 reserved

97
CM_PPMD_V1R1 =
98
IFA_ASCII =

internal file attributes

0x0001
IFA_MAINFRAME_MODE =

bits 2 & 3 are reserved

0x0002
EFA_ISDIR =

external file attributes

0x0001