dissect.target.loaders.zip

Module Contents

Classes

ZipSubLoader

Zip implementation of a SubLoader.

GenericZipSubLoader

Generic zip sub loader.

ZipLoader

Load zip files.

Attributes

dissect.target.loaders.zip.ZIP_EXT = ('.zip',)
class dissect.target.loaders.zip.ZipSubLoader(path: pathlib.Path, zipfile: zipfile.Path, **kwargs)

Bases: dissect.target.loader.SubLoader[zipfile.Path]

Zip implementation of a SubLoader.

zip
static detect(path: pathlib.Path, zipfile: zipfile.Path) bool
Abstractmethod:

Only to be called internally by ZipLoader.

abstract map(target: ZipSubLoader.map.target) None

Only to be called internally by ZipLoader.

class dissect.target.loaders.zip.GenericZipSubLoader(path: pathlib.Path, zipfile: zipfile.Path, **kwargs)

Bases: ZipSubLoader

Generic zip sub loader.

static detect(path: pathlib.Path, zipfile: zipfile.Path) bool

Only to be called internally by ZipLoader.

map(target: GenericZipSubLoader.map.target) None

Only to be called internally by ZipLoader.

class dissect.target.loaders.zip.ZipLoader(path: pathlib.Path, **kwargs)

Bases: dissect.target.loader.Loader

Load zip files.

__subloaders__
fh
zip
subloader = None
static detect(path: pathlib.Path) bool

Detects wether this Loader class can load this specific path.

Parameters:

path – The target path to check.

Returns:

True if the path can be loaded by a Loader instance. False otherwise.

map(target: ZipLoader.map.target) None

Maps the loaded path into a Target.

Parameters:

target – The target that we’re mapping into.