dissect.target.plugins.filesystem.walkfs

Module Contents

Classes

WalkFSPlugin

Filesystem agnostic walkfs plugin.

Functions

generate_record

Generate a FilesystemRecord from the given FilesystemEntry.

Attributes

dissect.target.plugins.filesystem.walkfs.FilesystemRecord
class dissect.target.plugins.filesystem.walkfs.WalkFSPlugin(target: dissect.target.Target)

Bases: dissect.target.plugin.Plugin

Filesystem agnostic walkfs plugin.

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.

walkfs(walkfs_path: str = '/') Iterator[FilesystemRecord]

Walk a target’s filesystem and return all filesystem entries.

dissect.target.plugins.filesystem.walkfs.generate_record(target: dissect.target.target.Target, entry: dissect.target.filesystem.FilesystemEntry) FilesystemRecord

Generate a FilesystemRecord from the given FilesystemEntry.

Parameters:
  • targetTarget instance

  • entryFilesystemEntry instance

Returns:

Generated FilesystemRecord for the given FilesystemEntry.