dissect.target.plugins.apps.vpn.wireguard¶
Module Contents¶
Classes¶
WireGuard configuration parser. |
|
OrderedDict implementation which allows multiple values for the keys |
Attributes¶
- dissect.target.plugins.apps.vpn.wireguard.WireGuardInterfaceRecord¶
- dissect.target.plugins.apps.vpn.wireguard.WireGuardPeerRecord¶
- class dissect.target.plugins.apps.vpn.wireguard.WireGuardPlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugin.PluginWireGuard configuration parser.
References
- __namespace__ = 'wireguard'¶
Defines the plugin namespace.
- CONFIG_GLOBS = ('/etc/wireguard/*.conf', '/usr/local/etc/wireguard/*.conf',...¶
- TUNNEL_NAME_RE¶
- configs: list[pathlib.Path] = []¶
- 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.
- config() collections.abc.Iterator[WireGuardInterfaceRecord | WireGuardPeerRecord]¶
Parses interface config files from wireguard installations.