Completion of OpenVAS module
This commit is contained in:
@ -119,7 +119,7 @@ class OpenVAS_API(object):
|
|||||||
('cmd', 'get_report_formats'),
|
('cmd', 'get_report_formats'),
|
||||||
('token', self.token)
|
('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)
|
data = self.request(url=self.OMP, method='GET', params=params)
|
||||||
|
|
||||||
bs = BeautifulSoup(data.content, "lxml")
|
bs = BeautifulSoup(data.content, "lxml")
|
||||||
|
@ -835,7 +835,6 @@ decrement = True
|
|||||||
while decrement:
|
while decrement:
|
||||||
decrement = False
|
decrement = False
|
||||||
try:
|
try:
|
||||||
print type(maxInt), maxInt
|
|
||||||
csv.field_size_limit(maxInt)
|
csv.field_size_limit(maxInt)
|
||||||
except OverflowError:
|
except OverflowError:
|
||||||
maxInt = int(maxInt/10)
|
maxInt = int(maxInt/10)
|
||||||
|
@ -711,6 +711,7 @@ class vulnWhispererOpenVAS(vulnWhispererBase):
|
|||||||
vuln_ready['scan_reference'] = report_id
|
vuln_ready['scan_reference'] = report_id
|
||||||
vuln_ready.rename(columns=self.COLUMN_MAPPING, inplace=True)
|
vuln_ready.rename(columns=self.COLUMN_MAPPING, inplace=True)
|
||||||
vuln_ready.port = vuln_ready.port.fillna(0).astype(int)
|
vuln_ready.port = vuln_ready.port.fillna(0).astype(int)
|
||||||
|
vuln_ready.fillna('', inplace=True)
|
||||||
if output_format == 'json':
|
if output_format == 'json':
|
||||||
with open(relative_path_name, 'w') as f:
|
with open(relative_path_name, 'w') as f:
|
||||||
f.write(vuln_ready.to_json(orient='records', lines=True))
|
f.write(vuln_ready.to_json(orient='records', lines=True))
|
||||||
|
Reference in New Issue
Block a user