Skip to content

Commit

Permalink
Handle where there are no scan results from Nexpose.
Browse files Browse the repository at this point in the history
specifically endpoint and test
  • Loading branch information
82d28a committed Jul 13, 2016
1 parent 75ac217 commit 24666ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions parsers/parse-nexpose.py
Expand Up @@ -87,7 +87,8 @@ def issue_r(raw_row, vuln):

# Scan details : ENDPOINTS
column_data_raw = raw_row.find('endpoints')
for dd in column_data_raw.iterfind('endpoint'):
if column_data_raw is not None:
for dd in column_data_raw.iterfind('endpoint'):

_temp = issue_row

Expand Down Expand Up @@ -164,7 +165,8 @@ def issue_r(raw_row, vuln):

# Scan details : TESTS
column_data_raw = raw_row.find('tests')
for ee in column_data_raw.iterfind('test'):
if column_data_raw is not None:
for ee in column_data_raw.iterfind('test'):

_temp = issue_row
if ee is not None:
Expand Down Expand Up @@ -222,7 +224,6 @@ def issue_r(raw_row, vuln):

ret_rows.append(_temp.copy())


return ret_rows


Expand Down

0 comments on commit 24666ee

Please sign in to comment.