Common: Add InvalidConfigurationError

This commit is contained in:
Mike Salvatore 2022-06-24 13:01:56 -04:00
parent fc9d854c72
commit 94524d124c
3 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,4 @@
from .agent_configuration import ( from .agent_configuration import AgentConfiguration, InvalidConfigurationError
AgentConfiguration,
)
from .agent_sub_configurations import ( from .agent_sub_configurations import (
CustomPBAConfiguration, CustomPBAConfiguration,
PluginConfiguration, PluginConfiguration,

View File

@ -17,6 +17,10 @@ from .agent_sub_configurations import (
) )
class InvalidConfigurationError(Exception):
pass
@dataclass(frozen=True) @dataclass(frozen=True)
class AgentConfiguration: class AgentConfiguration:
keep_tunnel_open_time: float keep_tunnel_open_time: float

View File

@ -38,5 +38,7 @@ class DomainControllerNameFetchError(FailedExploitationError):
"""Raise on failed attempt to extract domain controller's name""" """Raise on failed attempt to extract domain controller's name"""
# TODO: This has been replaced by common.configuration.InvalidConfigurationError. Use that error
# instead and remove this one.
class InvalidConfigurationError(Exception): class InvalidConfigurationError(Exception):
"""Raise when configuration is invalid""" """Raise when configuration is invalid"""