Documentation ¶
Index ¶
- Constants
- func CompressKernel(data []byte, method uint16, level int) ([]byte, error)
- type OnFileCreateHookFunc
- type Options
- type OverlapOptions
- type ZipBomb
- func (zb *ZipBomb) AddEscapedOverlap(kernelBytes []byte, numFiles int, optFns ...func(o *OverlapOptions)) error
- func (zb *ZipBomb) AddNoOverlap(kernelBytes []byte, numFiles int, optFns ...func(o *OverlapOptions)) error
- func (zb *ZipBomb) AddZipSlip(kernelBytes []byte, filename string, optFns ...func(o *ZipSlipOptions)) error
- func (zb *ZipBomb) Close() error
- func (zb *ZipBomb) IsZip64() bool
- func (zb *ZipBomb) UncompressedSize() int64
- type ZipSlipOptions
Constants ¶
View Source
const ( Deflate uint16 = 8 // DEFLATE compressed BZip2 uint16 = 12 // BZip2 compressed )
Compression methods. see APPNOTE.TXT 4.4.5
View Source
const ( IFMT = 0xf000 IFSOCK = 0xc000 IFLNK = 0xa000 IFREG = 0x8000 IFBLK = 0x6000 IFDIR = 0x4000 IFCHR = 0x2000 IFIFO = 0x1000 ISUID = 0x800 ISGID = 0x400 ISVTX = 0x200 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OnFileCreateHookFunc ¶
type OnFileCreateHookFunc = func(name string)
type OverlapOptions ¶ added in v0.0.6
type ZipBomb ¶
type ZipBomb struct {
// contains filtered or unexported fields
}
func (*ZipBomb) AddEscapedOverlap ¶
func (zb *ZipBomb) AddEscapedOverlap(kernelBytes []byte, numFiles int, optFns ...func(o *OverlapOptions)) error
func (*ZipBomb) AddNoOverlap ¶
func (zb *ZipBomb) AddNoOverlap(kernelBytes []byte, numFiles int, optFns ...func(o *OverlapOptions)) error
func (*ZipBomb) AddZipSlip ¶ added in v0.0.6
func (zb *ZipBomb) AddZipSlip(kernelBytes []byte, filename string, optFns ...func(o *ZipSlipOptions)) error
func (*ZipBomb) UncompressedSize ¶
Click to show internal directories.
Click to hide internal directories.