From f6745b00fdc18ae0eec8242f4698786fb94939ff Mon Sep 17 00:00:00 2001 From: Austin Taylor Date: Sun, 4 Mar 2018 15:06:09 -0500 Subject: [PATCH] Completion of OpenVAS module --- vulnwhisp/frameworks/openvas.py | 2 +- vulnwhisp/frameworks/qualys.py | 1 - vulnwhisp/vulnwhisp.py | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vulnwhisp/frameworks/openvas.py b/vulnwhisp/frameworks/openvas.py index 9545f26..3d19d1b 100644 --- a/vulnwhisp/frameworks/openvas.py +++ b/vulnwhisp/frameworks/openvas.py @@ -119,7 +119,7 @@ class OpenVAS_API(object): ('cmd', 'get_report_formats'), ('token', self.token) ) - self.vprint('{info} Retrieving available report foramts'.format(info=bcolors.INFO)) + self.vprint('{info} Retrieving available report formats'.format(info=bcolors.INFO)) data = self.request(url=self.OMP, method='GET', params=params) bs = BeautifulSoup(data.content, "lxml") diff --git a/vulnwhisp/frameworks/qualys.py b/vulnwhisp/frameworks/qualys.py index 962b31a..84c3fd8 100644 --- a/vulnwhisp/frameworks/qualys.py +++ b/vulnwhisp/frameworks/qualys.py @@ -835,7 +835,6 @@ decrement = True while decrement: decrement = False try: - print type(maxInt), maxInt csv.field_size_limit(maxInt) except OverflowError: maxInt = int(maxInt/10) diff --git a/vulnwhisp/vulnwhisp.py b/vulnwhisp/vulnwhisp.py index 9c32a41..7885883 100755 --- a/vulnwhisp/vulnwhisp.py +++ b/vulnwhisp/vulnwhisp.py @@ -711,6 +711,7 @@ class vulnWhispererOpenVAS(vulnWhispererBase): vuln_ready['scan_reference'] = report_id vuln_ready.rename(columns=self.COLUMN_MAPPING, inplace=True) vuln_ready.port = vuln_ready.port.fillna(0).astype(int) + vuln_ready.fillna('', inplace=True) if output_format == 'json': with open(relative_path_name, 'w') as f: f.write(vuln_ready.to_json(orient='records', lines=True))