:py:mod:`dissect.target.plugins.filesystem.icat` ================================================ .. py:module:: dissect.target.plugins.filesystem.icat Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.target.plugins.filesystem.icat.ICatPlugin .. py:class:: ICatPlugin(target: dissect.target.Target) Bases: :py:obj:`dissect.target.plugin.Plugin` Plugin to output the contents of a file based on its MFT segment or inode number. .. py:attribute:: FS_SUPPORTED :value: ['ntfs', 'xfs', 'ext', 'virtual'] .. py:method:: check_compatible() -> None Perform a compatibility check with the target. This function should return ``None`` if the plugin is compatible with the current target (``self.target``). For example, check if a certain file exists. Otherwise it should raise an ``UnsupportedPluginError``. :raises UnsupportedPluginError: If the plugin could not be loaded. .. py:method:: icat(inum, fs, ads) Output the contents of a file based on its MFT segment or inode number. Supports Alternate Data Streams .. rubric:: Example # outputs contents of segment defaults to 'sysvol' target-query -f icat --segment 96997 # outputs contents of inode defaults to '/' target-query -f icat --inode 50947 # outputs contents of segment's ADS target-query -f icat --segment 96997 --ads Zone.Identifier # outputs contents of segment in filesystem 3 of target target-query -f icat --fs 3 --segment 96997 # outputs contents of inode in filesystem 2 of target target-query -f icat --fs 2 --inode 50947