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

Reviewed scan python code

parent 3de52722
No related branches found
No related tags found
1 merge request!108Updated Python scan code
......@@ -79,14 +79,18 @@ for host,ports in endpoints.items():
report_filename = f"{output_dir}/{host}-report.txt"
summary_filename = f"{output_dir}/summary-report.json"
print("prima di creare PL")
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}")
target = gvm_client.get_or_create_target(target_name,host,port_list)
logging.info(f"Target:\n {target}")
print(f"Target:\n {target}")
task = gvm_client.get_or_create_task(task_name, target)
logging.info(f"Task:\n {task}")
print(f"Task:\n {task}")
if task.status == 'New':
task.start()
......
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