forked from p34709852/monkey
Common: Add InvalidConfigurationError
This commit is contained in:
parent
fc9d854c72
commit
94524d124c
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"""
|
||||||
|
|
Loading…
Reference in New Issue