Skip to content
Snippets Groups Projects
Commit 6c514ccf authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Reviewed scan python code

parent c053cfd8
No related branches found
No related tags found
1 merge request!108Updated Python scan code
......@@ -83,15 +83,18 @@ for host,ports in endpoints.items():
port_list = gvm_client.get_or_create_port_list(port_list_name, ports)
logging.info(f"Port list:\n {port_list}")
print(f"Port list:\n {port_list}")
print(f"Port list client:\n {port_list.client}")
target = gvm_client.get_or_create_target(target_name, host, port_list)
logging.info(f"Target:\n {target}")
print(f"Target:\n {target}")
print(f"Target client:\n {target.client}")
print(f"Target -> PortList: {target.port_list}")
task = gvm_client.get_or_create_task(task_name, target)
logging.info(f"Task:\n {task}")
print(f"Task:\n {task}")
print(f"Task client:\n {task.client}")
print(f"Task -> Target: {task.target}")
#if task.status == 'New':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment