:py:mod:`dissect.target.loaders.zip` ==================================== .. py:module:: dissect.target.loaders.zip Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.target.loaders.zip.ZipSubLoader dissect.target.loaders.zip.GenericZipSubLoader dissect.target.loaders.zip.ZipLoader Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.target.loaders.zip.ZIP_EXT .. py:data:: ZIP_EXT :value: ('.zip',) .. py:class:: ZipSubLoader(path: pathlib.Path, zipfile: zipfile.Path, **kwargs) Bases: :py:obj:`dissect.target.loader.SubLoader`\ [\ :py:obj:`zipfile.Path`\ ] Zip implementation of a :class:`SubLoader`. .. py:attribute:: zip .. py:method:: detect(path: pathlib.Path, zipfile: zipfile.Path) -> bool :staticmethod: :abstractmethod: Only to be called internally by :class:`ZipLoader`. .. py:method:: map(target: ZipSubLoader.map.target) -> None :abstractmethod: Only to be called internally by :class:`ZipLoader`. .. py:class:: GenericZipSubLoader(path: pathlib.Path, zipfile: zipfile.Path, **kwargs) Bases: :py:obj:`ZipSubLoader` Generic zip sub loader. .. py:method:: detect(path: pathlib.Path, zipfile: zipfile.Path) -> bool :staticmethod: Only to be called internally by :class:`ZipLoader`. .. py:method:: map(target: GenericZipSubLoader.map.target) -> None Only to be called internally by :class:`ZipLoader`. .. py:class:: ZipLoader(path: pathlib.Path, **kwargs) Bases: :py:obj:`dissect.target.loader.Loader` Load zip files. .. py:attribute:: __subloaders__ .. py:attribute:: fh .. py:attribute:: zip .. py:attribute:: subloader :value: None .. py:method:: detect(path: pathlib.Path) -> bool :staticmethod: Detects wether this ``Loader`` class can load this specific ``path``. :param path: The target path to check. :returns: ``True`` if the ``path`` can be loaded by a ``Loader`` instance. ``False`` otherwise. .. py:method:: map(target: ZipLoader.map.target) -> None Maps the loaded path into a ``Target``. :param target: The target that we're mapping into.