dissect.target.plugins.apps.shell.wget¶
Module Contents¶
Classes¶
Wget shell plugin. |
Attributes¶
- dissect.target.plugins.apps.shell.wget.WgetHstsRecord¶
- class dissect.target.plugins.apps.shell.wget.WgetPlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugin.PluginWget shell plugin.
- __namespace__ = 'wget'¶
Defines the plugin namespace.
- artifacts¶
- check_compatible() None¶
Perform a compatibility check with the target.
This function should return
Noneif the plugin is compatible with the current target (self.target). For example, check if a certain file exists. Otherwise it should raise anUnsupportedPluginError.- Raises:
UnsupportedPluginError – If the plugin could not be loaded.
- hsts() collections.abc.Iterator[WgetHstsRecord]¶
Yield domain entries found in wget HSTS files.
When using the
wgetcommand-line utility, a file named.wget-hstsis created in the user’s home directory by default. The.wget-hstsfile records HTTP Strict Transport Security (HSTS) information for the websites visited by the user viawget.References
Yields
WgetHstsRecordrecords with the following fields:ts_created (datetime): When the host was first added to the HSTS file host (uri): The host that was accessed over TLS by wget explicit_port (boolean): If the TCP port for TLS should be checked include_subdomains (boolean): If subdomains are included in the HSTS check max_age (datetime): Time to live of the entry in the HSTS file source (path): Location of the .wget-hsts file