Skip to content

Commit

Permalink
Lookingglass analyzer templates
Browse files Browse the repository at this point in the history
  • Loading branch information
LaZyDK authored Feb 19, 2021
1 parent 0ef35df commit 1c5743e
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
75 changes: 75 additions & 0 deletions thehive-templates/DNS_Lookingglass_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<div class="report-DNS_Lookingglass" ng-if="success">
<style>
.report-DNS_Lookingglass dl {
margin-bottom: 2px;
}
.backgroundTable tr:nth-child(even) {background-color: #f2f2f2;}
.backgroundTableodd tr:nth-child(odd) {background-color: #f2f2f2;}

.backgroundTable th, .backgroundTableodd th {
background: white;
position: sticky;
top: -2px;
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}
.timelineTable th {
background: white;
position: sticky;
top: -15px;
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
text-align: center;
}
.timelineTable tbody tr:hover td, .backgroundTable tbody tr:hover td, .backgroundTableodd tbody tr:hover td {
background-color: #d9edf7;
}
.timelineTable td {
max-width:200px;
}
.timelineTable tr {
max-height:100px;
}
</style>

<div class="panel panel-info">
<div class="panel panel-info" ng-if="content.results">
<div class="panel-heading">
<strong>Results</strong> (from {{content.count}} locations)
</div>
<div class="panel-body" style="display:block;height:750px;overflow:auto;">
<table class="table table-hover backgroundTable timelineTable">
<thead>
<th>Lookup from country</th>
<th>Lookup status</th>
<th>Lookup answer</th>
</thead>
<tbody>
<tr ng-repeat="hit in content.results track by $index">
<td>
{{hit.country.toString()}}
</td>
<td style="overflow:auto">
{{hit.status.toString()}}
</td>
<td style="overflow:auto">
{{hit.answer.toString()}}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br/>
<hr>
<br/>
</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>
3 changes: 3 additions & 0 deletions thehive-templates/DNS_Lookingglass_1_0/short.html
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>

0 comments on commit 1c5743e

Please sign in to comment.