Skip to content

Commit

Permalink
v. 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-krawczyk committed Sep 9, 2019
1 parent bc66b14 commit 0390305
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ This document records all notable changes to `nessus file analyzer by LimberDuck
This project adheres to `Semantic Versioning <http://semver.org/>`_.


0.4.0 (2019-09-09)
---------------------

New Features
- **CVE information in vulnerabilities report** - now you will have two additional columns at the end:
- CVE counter - with number of all CVE numbers assigned to particular plugin, if there is no CVE assigned cell has value 0
- CVE number - with list of CVE numbers assigned to particular plugin, if there is no CVE assigned cell is empty


0.3.1 (2019-09-02)
---------------------

Expand Down
4 changes: 2 additions & 2 deletions nessus_file_analyzer/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"of scans performed by using Nessus by (C) Tenable, Inc. and exports parsed" \
"data to a Microsoft Excel Workbook for effortless analysis."
__uri__ = "https://github.com/LimberDuck"
__version__ = "0.3.1"
__release_date__ = "2019.09.02"
__version__ = "0.4.0"
__release_date__ = "2019.09.09"
__author__ = u"Damian Krawczyk"
__email__ = "damian.krawczyk@limberduck.org"
__license_name__ = "GNU GPLv3"
Expand Down
33 changes: 31 additions & 2 deletions nessus_file_analyzer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,9 @@ def create_worksheet_for_vulnerabilities(self, workbook, list_of_source_files):
'Plugin modification date',
'Plugin description',
'Solution',
'Plugin output'
'Plugin output',
'CVE counter',
'CVE number'
]
else:
headers = [
Expand Down Expand Up @@ -2114,7 +2116,9 @@ def create_worksheet_for_vulnerabilities(self, workbook, list_of_source_files):
'Plugin modification date',
'Plugin description',
'Solution',
'Plugin output'
'Plugin output',
'CVE counter',
'CVE number'
]
number_of_columns = len(headers)
# print('Number of columns: ' + str(number_of_columns))
Expand Down Expand Up @@ -2213,6 +2217,7 @@ def create_worksheet_for_vulnerabilities(self, workbook, list_of_source_files):
plugin_description = nfr.plugin.report_item_value(report_item, 'description')
solution = nfr.plugin.report_item_value(report_item, 'solution')
plugin_output = nfr.plugin.report_item_value(report_item, 'plugin_output')
plugin_cves = nfr.plugin.report_item_values(report_item, 'cve')

if not self.report_vulnerabilities_debug_data_enabled and not \
self.report_vulnerabilities_none_skip:
Expand Down Expand Up @@ -2250,6 +2255,12 @@ def create_worksheet_for_vulnerabilities(self, workbook, list_of_source_files):
worksheet.write_string(row_index, 19, plugin_output)
else:
worksheet.write_blank(row_index, 19, None)
if plugin_cves:
worksheet.write_number(row_index, 20, len(plugin_cves))
worksheet.write_string(row_index, 21, ','.join(plugin_cves))
else:
worksheet.write_number(row_index, 20, 0)
worksheet.write_blank(row_index, 21, None)
elif not self.report_vulnerabilities_debug_data_enabled and \
self.report_vulnerabilities_none_skip:
if risk_factor == 'None':
Expand Down Expand Up @@ -2289,6 +2300,12 @@ def create_worksheet_for_vulnerabilities(self, workbook, list_of_source_files):
worksheet.write_string(row_index, 19, plugin_output)
else:
worksheet.write_blank(row_index, 19, None)
if plugin_cves:
worksheet.write_number(row_index, 20, len(plugin_cves))
worksheet.write_string(row_index, 21, ','.join(plugin_cves))
else:
worksheet.write_number(row_index, 20, 0)
worksheet.write_blank(row_index, 21, None)
elif self.report_vulnerabilities_debug_data_enabled and not \
self.report_vulnerabilities_none_skip:
worksheet.write(row_index, 0, host_scanner_ip)
Expand Down Expand Up @@ -2330,6 +2347,12 @@ def create_worksheet_for_vulnerabilities(self, workbook, list_of_source_files):
worksheet.write_string(row_index, 24, plugin_output)
else:
worksheet.write_blank(row_index, 24, None)
if plugin_cves:
worksheet.write_number(row_index, 25, len(plugin_cves))
worksheet.write_string(row_index, 26, ','.join(plugin_cves))
else:
worksheet.write_number(row_index, 25, 0)
worksheet.write_blank(row_index, 26, None)
elif self.report_vulnerabilities_debug_data_enabled and \
self.report_vulnerabilities_none_skip:
if risk_factor == 'None':
Expand Down Expand Up @@ -2374,6 +2397,12 @@ def create_worksheet_for_vulnerabilities(self, workbook, list_of_source_files):
worksheet.write_string(row_index, 24, plugin_output)
else:
worksheet.write_blank(row_index, 24, None)
if plugin_cves:
worksheet.write_number(row_index, 25, len(plugin_cves))
worksheet.write_string(row_index, 26, ','.join(plugin_cves))
else:
worksheet.write_number(row_index, 25, 0)
worksheet.write_blank(row_index, 26, None)

end_time = time.time()
elapsed_time = end_time - start_time
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
chardet==3.0.4
imageio==2.5.0
nessus-file-reader==0.1.0
nessus-file-reader==0.2.0
numpy==1.16.2
Pillow==5.4.1
PyQt5==5.12.1
Expand Down
8 changes: 4 additions & 4 deletions version.rc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VSVersionInfo(
ffi=FixedFileInfo(
filevers=(0, 3, 1, 0),
prodvers=(0, 3, 1, 0),
filevers=(0, 4, 0, 0),
prodvers=(0, 4, 0, 0),
mask=0x3f,
flags=0x0,
OS=0x40004,
Expand All @@ -16,12 +16,12 @@ VSVersionInfo(
u'040904B0',
[StringStruct(u'CompanyName', u'LimberDuck'),
StringStruct(u'FileDescription', u'nessus file analyzer'),
StringStruct(u'FileVersion', u'0.3.1.0'),
StringStruct(u'FileVersion', u'0.4.0.0'),
StringStruct(u'InternalName', u'nfa'),
StringStruct(u'LegalCopyright', u'\xa9 Damian Krawczyk.'),
StringStruct(u'OriginalFilename', u'nfa.exe'),
StringStruct(u'ProductName', u'nessus file analyzer'),
StringStruct(u'ProductVersion', u'0.3.1.0')])
StringStruct(u'ProductVersion', u'0.4.0.0')])
]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
]
Expand Down

0 comments on commit 0390305

Please sign in to comment.