leonov-av / vulristics

Extensible framework for analyzing publicly available information about vulnerabilities
https://avleonov.com/category/projects/vulristics/
MIT License
105 stars 16 forks source link

run report_cve.py and got error #2

Closed Howard0204 closed 3 years ago

Howard0204 commented 3 years ago

I got the key error as below

image

Howard0204 commented 3 years ago

also I run report_ms_patch_tuesday and got the following error image

leonov-av commented 3 years ago

Hello, Howard! Thanks for reporting the issue. I will try to test vulristics on CVE-2020-4006

leonov-av commented 3 years ago

I found the reason. It works well for me when I run it with vulners key set in credentials.py Screenshot_2021-07-29_13-33-50 But without it I get the same error: File "/home/alexander/Desktop/AVLEONOV/PycharmProjects/vulristics/functions_score.py", line 98, in get_vvs_struct_for_cve is_public_exploit = cve_data_all['vulners_cve_data_all'][cve]['public_exploit'] KeyError: 'CVE-2020-4006' I'll fix it soon, but it looks like without an API key, you still won't get information about exploits from vulners.com. As a workaround, you can register at vulners.com, get the API key and set it in credentials.py

leonov-av commented 3 years ago

@Howard0204 I fixed the problem. Now the script won't break even if you don't set the vulners API key.