Completion of OpenVAS module

This commit is contained in:
Austin Taylor
2018-03-04 15:06:09 -05:00
parent 21b2a03b36
commit f6745b00fd
3 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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)

View File

@ -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))