Skip to content

Commit

Permalink
#1 update short and long report templates for Nessus Analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Apr 2, 2017
1 parent 48dc1d1 commit d900c86
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
32 changes: 28 additions & 4 deletions thehive-templates/Nessus_1_0/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
.report-Nessus dl {
margin-bottom: 2px;
}

.report-Nessus .label-NessusCritical {
background-color: #9b59b6;
}
.report-Nessus .progress-bar-NessusCritical {
background-color: #9b59b6;
}
</style>

<div class="panel panel-info">
<div class="panel-heading">
<strong>Nessus Report</strong>
</div>
<div class="panel-body">
<div class="panel panel-default">
<!-- <div class="panel panel-default">
<div class="panel-heading">
<strong>Scanner Information</strong>
</div>
Expand All @@ -27,8 +32,21 @@
<dd>{{content.info.status}}</dd>
</dl>
</div>
</div>
</div> -->
<h4>Scanner Information</h4>
<dl class="dl-horizontal" ng-if="content.info">
<dt>Scanner Name</dt>
<dd>{{content.info.scanner_name}}</dd>
<dt>Policy</dt>
<dd>{{content.info.policy}}</dd>
<dt>Scan</dt>
<dd>{{content.info.name}}</dd>
<dt>Status</dt>
<dd>{{content.info.status}}</dd>
</dl>
<br>
<hr>
<h4>Scan Reports</h4>
<div ng-if="content.hosts" ng-repeat="host in content.hosts">
<div class="panel panel-default">
<div class="panel-heading">
Expand All @@ -54,6 +72,9 @@
<div class="progress-bar progress-bar-danger" ng-style="{width:(host.high *100)/(host.severity)+'%'}">
<span class="sr-only">{{host.danger}}</span>
</div>
<div class="progress-bar progress-bar-NessusCritical" ng-style="{width:(host.critical *100)/(host.severity)+'%'}">
<span class="sr-only">{{host.critical}}</span>
</div>
</div>
</dd>
</dl>
Expand All @@ -67,7 +88,7 @@
</thead>
<tbody ng-repeat="vuln in content.vulnerabilities | orderBy:'-severity'">
<tr>
<tdstyle="text-align: center">
<td style="text-align: center">
<span ng-switch="vuln.severity">
<span ng-switch-when="0" class="label label-info">
INFO
Expand All @@ -81,6 +102,9 @@
<span ng-switch-when="3" class="label label-danger">
HIGH
</span>
<span ng-switch-when="4" class="label label-NessusCritical">
CRITICAL
</span>
</span>
</td>
<td>{{vuln.plugin_name}}</td>
Expand Down
2 changes: 1 addition & 1 deletion thehive-templates/Nessus_1_0/short.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<span ng-if="content.low > 0" class="label label-info">Nessus:Low={{content.low}}</span>
<span ng-if="content.medium > 0" class="label label-warning">Nessus:Medium={{content.medium}}</span>
<span ng-if="content.high > 0" class="label label-danger">Nessus:High={{content.high}}</span>
<span ng-if="content.critical class="label label-danger"> 0">Nessus:Critical={{content.critical}}</span>
<span ng-if="content.critical > 0" class="label label-danger">Nessus:Critical={{content.critical}}</span>

0 comments on commit d900c86

Please sign in to comment.