dissect.target.plugins.browsers.firefox#

Module Contents#

Classes#

FirefoxPlugin

Firefox browser plugin.

class dissect.target.plugins.browsers.firefox.FirefoxPlugin(target)#

Bases: dissect.target.plugin.Plugin

Firefox browser plugin.

__namespace__ = 'firefox'#
DIRS = ['AppData/Roaming/Mozilla/Firefox/Profiles', 'AppData/local/Mozilla/Firefox/Profiles',...#
BrowserHistoryRecord#
BrowserDownloadRecord#
check_compatible()#

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.

history() Iterator[BrowserHistoryRecord]#

Return browser history records from Firefox.

Yields BrowserHistoryRecord with the following fields:

hostname (string): The target hostname. domain (string): The target domain. ts (datetime): Visit timestamp. browser (string): The browser from which the records are generated from. id (string): Record ID. url (uri): History URL. title (string): Page title. description (string): Page description. rev_host (string): Reverse hostname. visit_type (varint): Visit type. visit_count (varint): Amount of visits. hidden (string): Hidden value. typed (string): Typed value. session (varint): Session value. from_visit (varint): Record ID of the “from” visit. from_url (uri): URL of the “from” visit. source: (path): The source file of the history record.

downloads() Iterator[BrowserDownloadRecord]#

Return browser download records from Firefox.

Yields BrowserDownloadRecord with the following fields:

hostname (string): The target hostname. domain (string): The target domain. ts_start (datetime): Download start timestamp. ts_end (datetime): Download end timestamp. browser (string): The browser from which the records are generated from. id (string): Record ID. path (string): Download path. url (uri): Download URL. size (varint): Download file size. state (varint): Download state number. source: (path): The source file of the download record.