From 969c4ae8e55b5482f3ab25de5c071e5f1ee80bbf Mon Sep 17 00:00:00 2001 From: pemontto Date: Fri, 10 May 2019 16:10:20 +0100 Subject: [PATCH] fix missing paramters --- configs/test.ini | 6 ++++++ vulnwhisp/frameworks/nessus.py | 1 + 2 files changed, 7 insertions(+) diff --git a/configs/test.ini b/configs/test.ini index fdaa38a..6e255f3 100755 --- a/configs/test.ini +++ b/configs/test.ini @@ -10,6 +10,7 @@ write_path=/opt/VulnWhisperer/data/nessus/ db_path=/opt/VulnWhisperer/data/database trash=false verbose=false +scan_filter= [tenable] enabled=true @@ -23,6 +24,7 @@ write_path=/opt/VulnWhisperer/data/tenable/ db_path=/opt/VulnWhisperer/data/database trash=false verbose=false +scan_filter= [qualys_was] #Reference https://www.qualys.com/docs/qualys-was-api-user-guide.pdf to find your API @@ -33,6 +35,7 @@ password=examplepass write_path=/opt/VulnWhisperer/data/qualys_was/ db_path=/opt/VulnWhisperer/data/database verbose=false +scan_filter= # Set the maximum number of retries each connection should attempt. #Note, this applies only to failed connections and timeouts, never to requests where the server returns a response. @@ -49,6 +52,7 @@ password=examplepass write_path=/opt/VulnWhisperer/data/qualys_vm/ db_path=/opt/VulnWhisperer/data/database verbose=false +scan_filter= [detectify] #Reference https://developer.detectify.com/ @@ -61,6 +65,7 @@ password=examplepass write_path =/opt/VulnWhisperer/data/detectify/ db_path=/opt/VulnWhisperer/data/database verbose=false +scan_filter= [openvas] enabled=true @@ -71,6 +76,7 @@ password=examplepass write_path=/opt/VulnWhisperer/data/openvas/ db_path=/opt/VulnWhisperer/data/database verbose=false +scan_filter= [jira] enabled=false diff --git a/vulnwhisp/frameworks/nessus.py b/vulnwhisp/frameworks/nessus.py index 25b6748..2292f52 100755 --- a/vulnwhisp/frameworks/nessus.py +++ b/vulnwhisp/frameworks/nessus.py @@ -128,6 +128,7 @@ class NessusAPI(object): return response def get_scans(self, days=None): + parameters = {} if days: parameters = { "last_modification_date": (datetime.now() - timedelta(days=days)).strftime("%s")