2022-07-21 21:34:31 +08:00
|
|
|
from typing import Iterable
|
2019-09-05 20:03:30 +08:00
|
|
|
|
2022-07-21 14:23:29 +08:00
|
|
|
from common.configuration.agent_configuration import AgentConfiguration
|
2019-09-05 20:03:30 +08:00
|
|
|
|
|
|
|
|
2021-03-02 21:14:33 +08:00
|
|
|
class IslandConfigParser:
|
|
|
|
@staticmethod
|
2022-07-21 21:36:07 +08:00
|
|
|
def get_target_ips_from_configuration(agent_configuration: AgentConfiguration) -> Iterable[str]:
|
2022-07-21 21:20:14 +08:00
|
|
|
return agent_configuration.propagation.network_scan.targets.subnets
|