Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError in parseCVSSVector #2

Open
RasKalit0 opened this issue Sep 23, 2020 · 0 comments
Open

KeyError in parseCVSSVector #2

RasKalit0 opened this issue Sep 23, 2020 · 0 comments

Comments

@RasKalit0
Copy link

RasKalit0 commented Sep 23, 2020

Excel file is indeed created and with useful information but I mentioned errors while running the script.

$ cat /etc/centos-release
CentOS Linux release 7.8.2003 (Core)

$ python3 --version
Python 3.6.8

Fetched https://github.com/fyrm/nepali/archive/master.zip, unzip, added some python modules that were missing and ran nepali.py against a sample .nessus report.
This nessus report header is:
<?xml version="1.0" ?><NessusClientData_v2>

Running nepali...

<< Finding Nessus output files >>
<< Finished finding Nessus output files >>
<< Generating Excel Workbook and Worksheets >>
<< Finished generating Excel Workbook and Worksheets >>

<< Parsing files and writing main output >>
Parsing file: SampleReport.nessus
...
        Parsing: dc.local

==== Exception ====
        parseCVSSVector()
----
'PR:N'
Traceback (most recent call last):
  File "../../nepali-master/nepali.py", line 209, in parseCVSSVector
    vectorReturnList.append(cvss2_keyvalue_dict[bvitem])
KeyError: 'PR:N'

===================

==== Exception ====
        parseCVSSVector()
----
'RL:O'
Traceback (most recent call last):
  File "../../nepali-master/nepali.py", line 209, in parseCVSSVector
    vectorReturnList.append(cvss2_keyvalue_dict[bvitem])
KeyError: 'RL:O'

===================

==== Exception ====
        parseCVSSVector()
----
'PR:N'
Traceback (most recent call last):
  File "../../nepali-master/nepali.py", line 209, in parseCVSSVector
    vectorReturnList.append(cvss2_keyvalue_dict[bvitem])
KeyError: 'PR:N'

===================

==== Exception ====
        parseCVSSVector()
----
'RL:O'
Traceback (most recent call last):
  File "../../nepali-master/nepali.py", line 209, in parseCVSSVector
    vectorReturnList.append(cvss2_keyvalue_dict[bvitem])
KeyError: 'RL:O'

===================
                Finished parsing: 192.168.224.36
...
Finished parsing file: SampleReport.nessus
<< Finished parsing files and writing main output >>
<< Adding scan time and errors to output >>
<< Finished adding scan time and errors to output >>

--
Done. Output workbook saved:
SampleReport__parsed__(20200923_1059).xlsx

Looking at the very first KeyError error occurrence (KeyError: 'PR:N') I see that PR:N is defined in cvss3_keyvalue_dict and use in parseCVSSVector(vector)

Am I the only one facing this issue?

Thanks and best regards,
Pascal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant