volatility3.framework.symbols.intermed module
- class ISFormatTable(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
SymbolTableInterface
Provide a base class to identify all subclasses.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)
Removes the associated class override for a specific Symbol type.
- Return type:
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol(name)
Resolves a symbol name into a symbol object.
If the symbol isn’t found, it raises a SymbolError exception
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type(name)
Resolves a symbol name into an object template.
If the symbol isn’t found it raises a SymbolError exception
- Return type:
- get_type_class(name)
Returns the class associated with a Symbol type.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a metadata object containing information about the symbol table.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (0, 0, 0)
- class IntermediateSymbolTable(context, config_path, name, isf_url, native_types=None, table_mapping=None, validate=True, class_types=None, symbol_mask=0)[source]
Bases:
SymbolTableInterface
The IntermediateSymbolTable class reads a JSON file and conducts common tasks such as validation, construction by looking up a JSON file from the available files and ensuring the appropriate version of the schema and proxy are chosen.
- The JSON format itself is made up of various groups (symbols, user_types, base_types, enums and metadata)
Symbols link a name to a particular offset relative to the start of a section of memory
Base types define the simplest primitive data types, these can make more complex structure
User types define the more complex types by specifying members at a relative offset from the start of the type
Enums can specify a list of names and values and a type inside which the numeric encoding will fit
Metadata defines information about the originating file
These are documented in JSONSchema JSON files located in volatility3/schemas.
Instantiates a SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema. The validation can be disabled by passing validate = False, but this should almost never be done.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url (
str
) – The URL pointing to the ISF file locationnative_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextvalidate (
bool
) – Determines whether the ISF file will be validated against the appropriate schemaclass_types (
Optional
[Mapping
[str
,Type
[ObjectInterface
]]]) – A dictionary of type names and classes that override StructType when they are instantiatedsymbol_mask (
int
) – An address mask used for all returned symbol offsets from this table (a mask of 0 disables masking)
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- clear_symbol_cache(*args, **kwargs)
Clears the symbol cache of this symbol table.
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- classmethod create(context, config_path, sub_path, filename, native_types=None, table_mapping=None, class_types=None, symbol_mask=0)[source]
Takes a context and loads an intermediate symbol table based on a filename.
- Parameters:
context (
ContextInterface
) – The context that the current plugin is being run withinconfig_path (
str
) – The configuration path for reading/storing configuration information this symbol table may usesub_path (
str
) – The path under a suitable symbol path (defaults to volatility3/symbols and volatility3/framework/symbols) to checkfilename (
str
) – Basename of the file to find under the sub_pathnative_types (
Optional
[NativeTableInterface
]) – Set of native types, defaults to native types read from the intermediate symbol format filetable_mapping (
Optional
[Dict
[str
,str
]]) – a dictionary of table names mentioned within the ISF file, and the tables within the context which they map tosymbol_mask (
int
) – An address mask used for all returned symbol offsets from this table (a mask of 0 disables masking)
- Return type:
- Returns:
the name of the added symbol table
- del_type_class(*args, **kwargs)
Removes the associated class override for a specific Symbol type.
- property enumerations
Returns an iterator of the Enumeration names.
- classmethod file_symbol_url(sub_path, filename=None)[source]
Returns an iterator of appropriate file-scheme symbol URLs that can be opened by a ResourceAccessor class.
Filter reduces the number of results returned to only those URLs containing that string
- get_enumeration(*args, **kwargs)
- classmethod get_requirements()[source]
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol(*args, **kwargs)
Resolves a symbol name into a symbol object.
If the symbol isn’t found, it raises a SymbolError exception
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type(*args, **kwargs)
Resolves a symbol name into an object template.
If the symbol isn’t found it raises a SymbolError exception
- get_type_class(*args, **kwargs)
Returns the class associated with a Symbol type.
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer
- set_type_class(*args, **kwargs)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name – The name of the type to override the class for
clazz – The actual class to override for the provided type name
- property symbols
Returns an iterator of the Symbol names.
- property types
Returns an iterator of the Symbol type names.
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- class Version1Format(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
ISFormatTable
Class for storing intermediate debugging data as objects and classes.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)[source]
Removes the associated class override for a specific Symbol type.
- Return type:
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a metadata object containing information about the symbol table.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)[source]
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (0, 0, 1)
- class Version2Format(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
Version1Format
Class for storing intermediate debugging data as objects and classes.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)
Removes the associated class override for a specific Symbol type.
- Return type:
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol(name)
Returns the location offset given by the symbol name.
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type_class(name)
Returns the class associated with a Symbol type.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a metadata object containing information about the symbol table.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (2, 0, 0)
- class Version3Format(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
Version2Format
Class for storing intermediate debugging data as objects and classes.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)
Removes the associated class override for a specific Symbol type.
- Return type:
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type_class(name)
Returns the class associated with a Symbol type.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a metadata object containing information about the symbol table.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (2, 1, 0)
- class Version4Format(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
Version3Format
Class for storing intermediate debugging data as objects and classes.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)
Removes the associated class override for a specific Symbol type.
- Return type:
- format_mapping = {'bool': <class 'volatility3.framework.objects.Boolean'>, 'char': <class 'volatility3.framework.objects.Char'>, 'float': <class 'volatility3.framework.objects.Float'>, 'int': <class 'volatility3.framework.objects.Integer'>, 'void': <class 'volatility3.framework.objects.Integer'>}
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol(name)
Returns the symbol given by the symbol name.
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type_class(name)
Returns the class associated with a Symbol type.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a metadata object containing information about the symbol table.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (4, 0, 0)
- class Version5Format(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
Version4Format
Class for storing intermediate debugging data as objects and classes.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)
Removes the associated class override for a specific Symbol type.
- Return type:
- format_mapping = {'bool': <class 'volatility3.framework.objects.Boolean'>, 'char': <class 'volatility3.framework.objects.Char'>, 'float': <class 'volatility3.framework.objects.Float'>, 'int': <class 'volatility3.framework.objects.Integer'>, 'void': <class 'volatility3.framework.objects.Integer'>}
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type_class(name)
Returns the class associated with a Symbol type.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a metadata object containing information about the symbol table.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (4, 1, 0)
- class Version6Format(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
Version5Format
Class for storing intermediate debugging data as objects and classes.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)
Removes the associated class override for a specific Symbol type.
- Return type:
- format_mapping = {'bool': <class 'volatility3.framework.objects.Boolean'>, 'char': <class 'volatility3.framework.objects.Char'>, 'float': <class 'volatility3.framework.objects.Float'>, 'int': <class 'volatility3.framework.objects.Integer'>, 'void': <class 'volatility3.framework.objects.Integer'>}
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol(name)
Returns the symbol given by the symbol name.
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type_class(name)
Returns the class associated with a Symbol type.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a MetadataInterface object.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (6, 0, 0)
- class Version7Format(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
Version6Format
Class for storing intermediate debugging data as objects and classes.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)
Removes the associated class override for a specific Symbol type.
- Return type:
- format_mapping = {'bool': <class 'volatility3.framework.objects.Boolean'>, 'char': <class 'volatility3.framework.objects.Char'>, 'float': <class 'volatility3.framework.objects.Float'>, 'int': <class 'volatility3.framework.objects.Integer'>, 'void': <class 'volatility3.framework.objects.Integer'>}
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol(name)
Returns the symbol given by the symbol name.
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type_class(name)
Returns the class associated with a Symbol type.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a MetadataInterface object.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (6, 1, 0)
- class Version8Format(context, config_path, name, json_object, native_types=None, table_mapping=None)[source]
Bases:
Version7Format
Class for storing intermediate debugging data as objects and classes.
Instantiates an SymbolTable based on an IntermediateSymbolFormat JSON file. This is validated against the appropriate schema.
- Parameters:
context (
ContextInterface
) – The volatility context for the symbol tableconfig_path (
str
) – The configuration path for the symbol tablename (
str
) – The name for the symbol table (this is used in symbols e.g. table!symbol )isf_url – The URL pointing to the ISF file location
native_types (
NativeTableInterface
) – The NativeSymbolTable that contains the native types for this symbol tabletable_mapping (
Optional
[Dict
[str
,str
]]) – A dictionary linking names referenced in the file with symbol tables in the contextclass_types – A dictionary of type names and classes that override StructType when they are instantiated
- build_configuration()
Constructs a HierarchicalDictionary of all the options required to build this component in the current context.
Ensures that if the class has been created, it can be recreated using the configuration built Inheriting classes must override this to ensure any dependent classes update their configurations too
- Return type:
- property config: HierarchicalDict
The Hierarchical configuration Dictionary for this Configurable object.
- property context: ContextInterface
The context object that this configurable belongs to/configuration is stored in.
- del_type_class(name)
Removes the associated class override for a specific Symbol type.
- Return type:
- format_mapping = {'bool': <class 'volatility3.framework.objects.Boolean'>, 'char': <class 'volatility3.framework.objects.Char'>, 'float': <class 'volatility3.framework.objects.Float'>, 'int': <class 'volatility3.framework.objects.Integer'>, 'void': <class 'volatility3.framework.objects.Integer'>}
- classmethod get_requirements()
Returns a list of RequirementInterface objects required by this object.
- Return type:
- get_symbol(name)
Returns the symbol given by the symbol name.
- Return type:
- get_symbol_type(name)
Resolves a symbol name into a symbol and then resolves the symbol’s type.
- get_symbols_by_location(offset, size=0)
Returns the name of all symbols in this table that live at a particular offset.
- get_symbols_by_type(type_name)
Returns the name of all symbols in this table that have type matching type_name.
- get_type_class(name)
Returns the class associated with a Symbol type.
- Return type:
- classmethod make_subconfig(context, base_config_path, **kwargs)
Convenience function to allow constructing a new randomly generated sub-configuration path, containing each element from kwargs.
- Parameters:
context (
ContextInterface
) – The context in which to store the new configurationbase_config_path (
str
) – The base configuration path on which to build the new configurationkwargs – Keyword arguments that are used to populate the new configuration path
- Returns:
The newly generated full configuration path
- Return type:
- property metadata: MetadataInterface | None
Returns a MetadataInterface object.
- property natives: NativeTableInterface
Returns None or a NativeTable for handling space specific native types.
- optional_set_type_class(name, clazz)
Calls the set_type_class function but does not throw an exception. Returns whether setting the type class was successful. :type name:
str
:param name: The name of the type to override the class for :type clazz:Type
[ObjectInterface
] :param clazz: The actual class to override for the provided type name- Return type:
- property producer: ProducerMetadata | None
Returns a metadata object containing information about the symbol table.
- set_type_class(name, clazz)
Overrides the object class for a specific Symbol type.
Name must be present in self.types
- Parameters:
name (
str
) – The name of the type to override the class forclazz (
Type
[ObjectInterface
]) – The actual class to override for the provided type name
- Return type:
- classmethod unsatisfied(context, config_path)
Returns a list of the names of all unsatisfied requirements.
Since a satisfied set of requirements will return [], it can be used in tests as follows:
unmet = configurable.unsatisfied(context, config_path) if unmet: raise RuntimeError("Unsatisfied requirements: {}".format(unmet)
- Return type:
- version = (6, 2, 0)