forked from p15670423/monkey
Island: Convert scanned machines to json serializable data
This commit is contained in:
parent
d974b03ab0
commit
9048f72030
|
@ -120,8 +120,10 @@ class ReportService:
|
|||
formatted_nodes.append(
|
||||
{
|
||||
"hostname": machine.hostname,
|
||||
"ip_addresses": machine.network_interfaces,
|
||||
"accessible_from_nodes": accessible_from,
|
||||
"ip_addresses": list(map(str, machine.network_interfaces)),
|
||||
"accessible_from_nodes": list(
|
||||
map(lambda m: m.dict(simplify=True), accessible_from)
|
||||
),
|
||||
"domain_name": "",
|
||||
# TODO add services
|
||||
"services": [],
|
||||
|
|
Loading…
Reference in New Issue