prjblk/nessus-database-export

2 problems I've met

Opened this issue · 0 comments

Al538 commented
  1. Sometimes it is not enogh 45 chars for name, so I had to increase it in schema.sql.
  2. I've got exception
    File "/opt/nessus-database-export/export.py", line 181, in insert_host
    sev_count[vuln['severity']] += vuln['count']
    TypeError: list indices must be integers or slices, not NoneType

I think it happen when you have compliance scans.
Changes:
177-178, 208-209

for vuln in scan_run['vulnerabilities']:
    if vuln['severity'] != None:
        sev_count[vuln['severity']] += vuln['count']