-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ce690d
commit 48dc1d1
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<div class="report-Nessus" ng-if="success"> | ||
<style> | ||
.report-Nessus dl { | ||
margin-bottom: 2px; | ||
} | ||
|
||
</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-heading"> | ||
<strong>Scanner Information</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<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> | ||
</div> | ||
</div> | ||
<br> | ||
<div ng-if="content.hosts" ng-repeat="host in content.hosts"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<strong>{{host.hostname}}</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<br> | ||
<dl class="dl-horizontal" nf-if="content.hosts" > | ||
<dt>Checks</dt> | ||
<dd>{{host.scanprogresscurrent}}/{{host.scanprogresstotal}}</dd> | ||
<dt>{{host.severity}} vulnerabilities</dt> | ||
<dd> | ||
<div class="progress"> | ||
<div class="progress-bar progress-bar-info" ng-style="{width:(host.info *100)/(host.severity)+'%'}"> | ||
<span class="sr-only">{{host.info}}</span> | ||
</div> | ||
<div class="progress-bar progress-bar-success" ng-style="{width:(host.low *100)/(host.severity)+'%'}"> | ||
<span class="sr-only">{{host.low}}</span> | ||
</div> | ||
<div class="progress-bar progress-bar-warning" ng-style="{width:(host.medium *100)/(host.severity)+'%'}"> | ||
<span class="sr-only">{{host.medium}}</span> | ||
</div> | ||
<div class="progress-bar progress-bar-danger" ng-style="{width:(host.high *100)/(host.severity)+'%'}"> | ||
<span class="sr-only">{{host.danger}}</span> | ||
</div> | ||
</div> | ||
</dd> | ||
</dl> | ||
<br> | ||
<table class="table"> | ||
<thead> | ||
<th style="text-align: center">Severity</th> | ||
<th>Plugin Name</th> | ||
<th>Plugin Family</th> | ||
<th>Count</th> | ||
</thead> | ||
<tbody ng-repeat="vuln in content.vulnerabilities | orderBy:'-severity'"> | ||
<tr> | ||
<tdstyle="text-align: center"> | ||
<span ng-switch="vuln.severity"> | ||
<span ng-switch-when="0" class="label label-info"> | ||
INFO | ||
</span> | ||
<span ng-switch-when="1" class="label label-success"> | ||
LOW | ||
</span> | ||
<span ng-switch-when="2" class="label label-warning"> | ||
MEDIUM | ||
</span> | ||
<span ng-switch-when="3" class="label label-danger"> | ||
HIGH | ||
</span> | ||
</span> | ||
</td> | ||
<td>{{vuln.plugin_name}}</td> | ||
<td>{{vuln.plugin_family}}</td> | ||
<td>{{vuln.count}}</td> | ||
</tr> | ||
</tbody> | ||
</table | ||
<br> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<span ng-if="content.info > 0" class="label label-info">Nessus:Info={{content.info}}</span> | ||
<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> |