Common: Remove sub-configuration and sub-schemas from configuration

This commit is contained in:
Mike Salvatore 2022-06-17 10:23:43 -04:00
parent 291b82c28d
commit ed39d155bf
2 changed files with 9 additions and 34 deletions

View File

@ -1,29 +1,3 @@
from .agent_sub_configurations import (
PluginConfiguration,
CustomPBAConfiguration,
ICMPScanConfiguration,
TCPScanConfiguration,
ScanTargetConfiguration,
NetworkScanConfiguration,
ExploitationOptionsConfiguration,
ExploiterConfiguration,
ExploitationConfiguration,
PropagationConfiguration,
)
from .agent_sub_configuration_schemas import (
PluginConfigurationSchema,
CustomPBAConfigurationSchema,
ICMPScanConfigurationSchema,
TCPScanConfigurationSchema,
ScanTargetConfigurationSchema,
NetworkScanConfigurationSchema,
ExploitationOptionsConfigurationSchema,
ExploiterConfigurationSchema,
ExploitationConfigurationSchema,
PropagationConfigurationSchema,
)
from .agent_configuration import ( from .agent_configuration import (
AgentConfiguration, AgentConfiguration,
AgentConfigurationSchema, AgentConfigurationSchema,

View File

@ -1,23 +1,24 @@
from common import OperatingSystems from common import OperatingSystems
from common.configuration import ( from common.configuration import AgentConfiguration, AgentConfigurationSchema
AgentConfiguration, from common.configuration.agent_sub_configuration_schemas import (
AgentConfigurationSchema,
CustomPBAConfiguration,
CustomPBAConfigurationSchema, CustomPBAConfigurationSchema,
ExploitationConfiguration,
ExploitationConfigurationSchema, ExploitationConfigurationSchema,
ExploitationOptionsConfigurationSchema, ExploitationOptionsConfigurationSchema,
ExploiterConfigurationSchema, ExploiterConfigurationSchema,
ICMPScanConfigurationSchema, ICMPScanConfigurationSchema,
NetworkScanConfiguration,
NetworkScanConfigurationSchema, NetworkScanConfigurationSchema,
PluginConfiguration,
PluginConfigurationSchema, PluginConfigurationSchema,
PropagationConfiguration,
PropagationConfigurationSchema, PropagationConfigurationSchema,
ScanTargetConfigurationSchema, ScanTargetConfigurationSchema,
TCPScanConfigurationSchema, TCPScanConfigurationSchema,
) )
from common.configuration.agent_sub_configurations import (
CustomPBAConfiguration,
ExploitationConfiguration,
NetworkScanConfiguration,
PluginConfiguration,
PropagationConfiguration,
)
NAME = "bond" NAME = "bond"
OPTIONS = {"gun": "Walther PPK", "car": "Aston Martin DB5"} OPTIONS = {"gun": "Walther PPK", "car": "Aston Martin DB5"}