mirror of https://github.com/MISP/misp-modules
fix: [variodbs] Fixed the empty vulnerability results case handling, to avoid the module to stop before looking for related exploits
parent
3db8fa63db
commit
b964b5e2a6
|
@ -181,7 +181,7 @@ def handler(q=False):
|
||||||
parser.parse_vulnerability_information(vulnerability_results)
|
parser.parse_vulnerability_information(vulnerability_results)
|
||||||
empty = False
|
empty = False
|
||||||
else:
|
else:
|
||||||
if r.reason != 'Not found':
|
if r.reason != 'Not Found':
|
||||||
return {'error': 'Error while querying the variotdbs API.'}
|
return {'error': 'Error while querying the variotdbs API.'}
|
||||||
r = requests.get(f"{variotdbs_url}/exploits/?cve={attribute['value']}", headers=headers)
|
r = requests.get(f"{variotdbs_url}/exploits/?cve={attribute['value']}", headers=headers)
|
||||||
if r.status_code == 200:
|
if r.status_code == 200:
|
||||||
|
|
Loading…
Reference in New Issue