-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #269: Added first GreyNoise template.
- Loading branch information
Showing
2 changed files
with
41 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,38 @@ | ||
<div class="panel panel-info" ng-if="success"> | ||
<div class="panel-heading"> | ||
GreyNoise results for <strong>{{artifact.data}}</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<table class="table" ng-if="content.records"> | ||
<thead> | ||
<th>Category</th> | ||
<th>Confidence</th> | ||
<th>Last update</th> | ||
<th>Name</th> | ||
<th>Tags</th> | ||
<th>Metadata</th> | ||
</thead> | ||
<tbody ng-repeat="record in content.records | orderBy:'-last_updated'"> | ||
<tr> | ||
<td>{{record.category}}</td> | ||
<td><span class="label" ng-class="{'high': 'label-success', 'low': 'label-warning'}[record.confidence]">{{record.confidence}}</span></td> | ||
<td>{{record.last_updated}}</td> | ||
<td>{{record.name}}</td> | ||
<td><span class="label label-warning" ng-if="content.metadata.tor">Tor-Node</span></td> | ||
<td><pre>{{record.metadata}}</pre></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<p ng-ig="!content.records">No records found for {{artifact.data}}.</p> | ||
</div> | ||
</div> | ||
|
||
<!-- General error --> | ||
<div class="panel panel-danger" ng-if="!success"> | ||
<div class="panel-heading"> | ||
<strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong> | ||
</div> | ||
<div class="panel-body"> | ||
{{content.errorMessage}} | ||
</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,3 @@ | ||
<span class="label" ng-repeat="t in content.taxonomies" ng-class="{'info': 'label-info', 'safe': 'label-success', 'suspicious': 'label-warning', 'malicious':'label-danger'}[t.level]"> | ||
{{t.namespace}}:{{t.predicate}}={{t.value}} | ||
</span> |