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(
|
formatted_nodes.append(
|
||||||
{
|
{
|
||||||
"hostname": machine.hostname,
|
"hostname": machine.hostname,
|
||||||
"ip_addresses": machine.network_interfaces,
|
"ip_addresses": list(map(str, machine.network_interfaces)),
|
||||||
"accessible_from_nodes": accessible_from,
|
"accessible_from_nodes": list(
|
||||||
|
map(lambda m: m.dict(simplify=True), accessible_from)
|
||||||
|
),
|
||||||
"domain_name": "",
|
"domain_name": "",
|
||||||
# TODO add services
|
# TODO add services
|
||||||
"services": [],
|
"services": [],
|
||||||
|
|
Loading…
Reference in New Issue