forked from p15670423/monkey
BB: Modify IslandConfigParser.get_ips_of_targets() logic per new configuration
This commit is contained in:
parent
5d9e525ecc
commit
c6ffd16e48
|
@ -1,4 +1,4 @@
|
||||||
import json
|
from typing import Iterable, Mapping
|
||||||
|
|
||||||
import dpath.util
|
import dpath.util
|
||||||
|
|
||||||
|
@ -11,5 +11,7 @@ class IslandConfigParser:
|
||||||
return agent_configuration.to_json()
|
return agent_configuration.to_json()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_ips_of_targets(raw_config):
|
def get_ips_of_targets(raw_config: Mapping) -> Iterable:
|
||||||
return dpath.util.get(json.loads(raw_config), "basic_network.scope.subnet_scan_list", ".")
|
return dpath.util.get(
|
||||||
|
raw_config, "agent_configuration.propagation.network_scan.targets.subnets", "."
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue