Skip to content

Commit

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


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

Bug Fixes
- **Start button and menu option Start analysis** - will be set to disabled if you do not provide nessus files during the next selection (e.g. cancelling nessus files selection, cancelling source directory selection, selecting directory without nessus files, dropping files with extension different than .nessus, dropping directory without nessus files)
- **List of files to pars** - will be correctly cleared out if you do not provide nessus files during the next selection (e.g. cancelling nessus files selection, cancelling source directory selection, selecting directory without nessus files, dropping files with extension different than .nessus, dropping directory without nessus files)

0.3.0 (2019-08-26)
---------------------

Expand Down
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Main features
Usage
=====
1. To open nessus files:
1.1 Open *nessus file analyzer by LimberDuck*, go to Menu "File" and choose:
1.1 Open nessus file analyzer by LimberDuck, go to Menu "File" and choose:
- "Open file\\-s" if you want to open one or more nessus files at once.
- "Open directory" if you want to open all nessus files from selected directory and its subdirectories.
1.2 On OS level select one or more nessus files:
Expand All @@ -47,7 +47,6 @@ Usage
- simple drag and drop selected directory or directories on *nessus file analyzer by LimberDuck* window.

2. Select one or more report type:

- "scan" - if you want to see sum-up from point of view of whole scan
- "host" - if you want to see sum-up from point of view of particular host from given scan
- "vulnerabilities" - if you want to see list of vulnerabilities reported in this scan for all scanned hosts
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.0"
__release_date__ = "2019.08.26"
__version__ = "0.3.1"
__release_date__ = "2019.09.02"
__author__ = u"Damian Krawczyk"
__email__ = "damian.krawczyk@limberduck.org"
__license_name__ = "GNU GPLv3"
Expand Down
35 changes: 23 additions & 12 deletions nessus_file_analyzer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,19 +811,18 @@ def open_files(self):

self.get_target_directory_from_file()

self.list_of_files_to_pars(files_only)
self.list_of_files_to_pars(files_only)

if len(files_only) > 0:
if (self.__report_scan_enabled
or self.__report_host_enabled
or self.__report_vulnerabilities_enabled
or self.__report_noncompliance_enabled):
self.pushButton_start.setEnabled(True)
self.actionStart_analysis.setEnabled(True)
else:
number_of_files = 0
info = 'Selected {0} files.'.format(str(number_of_files))
color = 'black'
self.print_log(info, color=color)
self.pushButton_start.setDisabled(True)
self.actionStart_analysis.setDisabled(True)

@staticmethod
def check_if_subdirectory_exist(main_directory):
Expand Down Expand Up @@ -863,6 +862,7 @@ def open_directory(self):
os_separator = os.path.sep
target_directory = os.path.abspath(directories)

files =[]
if directories:
if self.checkBox_set_source_directory_as_target_directory.isChecked():
self.set_target_directory(target_directory)
Expand All @@ -871,19 +871,19 @@ def open_directory(self):

files = glob.glob(target_directory + os_separator + '**' + os_separator + extension, recursive=True)
# print(files)
self.list_of_files_to_pars(files)

self.list_of_files_to_pars(files)

if len(files) > 0:
if (self.__report_scan_enabled
or self.__report_host_enabled
or self.__report_vulnerabilities_enabled
or self.__report_noncompliance_enabled):
self.pushButton_start.setEnabled(True)
self.actionStart_analysis.setEnabled(True)
else:
number_of_files = 0
info = 'Selected {0} files.'.format(str(number_of_files))
color = 'black'
self.print_log(info, color=color)
self.pushButton_start.setDisabled(True)
self.actionStart_analysis.setDisabled(True)

def open_files_by_drag_and_drop(self, qurls):
"""
Expand Down Expand Up @@ -924,9 +924,20 @@ def open_files_by_drag_and_drop(self, qurls):
for file in files:
paths.append(file)

if len(paths) > 0:
self.list_of_files_to_pars(paths)

if len(paths) > 0:
if (self.__report_scan_enabled
or self.__report_host_enabled
or self.__report_vulnerabilities_enabled
or self.__report_noncompliance_enabled):
self.pushButton_start.setEnabled(True)
self.actionStart_analysis.setEnabled(True)

else:
self.pushButton_start.setDisabled(True)
self.actionStart_analysis.setDisabled(True)

def open_target_directory(self):
"""
Function open target directory taking into account Operating system:
Expand Down Expand Up @@ -994,7 +1005,7 @@ def list_of_files_to_pars(self, files):
suffix = ''
else:
suffix = 's'
info = 'Selected {0} file{1}.'.format(str(number_of_files), suffix)
info = 'Selected {0} nessus file{1}.'.format(str(number_of_files), suffix)
color = 'blue'
self.print_log(info, color=color)
self.print_status_bar_info(info)
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, 0, 0),
prodvers=(0, 3, 0, 0),
filevers=(0, 3, 1, 0),
prodvers=(0, 3, 1, 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.0.0'),
StringStruct(u'FileVersion', u'0.3.1.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.0.0')])
StringStruct(u'ProductVersion', u'0.3.1.0')])
]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
]
Expand Down

0 comments on commit bc66b14

Please sign in to comment.