Skip to content

Commit

Permalink
fix info in json, keep analyzer simple
Browse files Browse the repository at this point in the history
  • Loading branch information
dadokkio committed Feb 23, 2021
1 parent 05d69aa commit 0789ca2
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 66 deletions.
24 changes: 21 additions & 3 deletions analyzers/DNSLookingglass/DNSLookingglass.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@
"command": "DNSLookingglass/DNSLookingglass_lookup.py",
"baseConfig": "DNSLookingglass.json",
"config": {
"service": "query"
}
}
"service": "query"
},
"registration_required": false,
"subscription_required": false,
"free_subscription": false,
"service_homepage": "https://isc.sans.edu/",
"service_logo": {
"path": "assets/dshield.png",
"caption": "logo"
},
"screenshots": [
{
"path": "assets/DNS_Lookingglass_long.png",
"caption": "DNS Lookingglass: Long report template"
},
{
"path": "assets/DNS_Lookingglass_artifacts.png",
"caption": "DNS Lookingglass: artifacts"
}
]
}
Binary file added analyzers/DNSLookingglass/assets/dshield.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 27 additions & 63 deletions thehive-templates/DNS_Lookingglass_1_0/long.html
Original file line number Diff line number Diff line change
@@ -1,68 +1,32 @@
<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>
<div class="panel panel-info" ng-if="success">
<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 table-striped">
<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>
</tbody>
</table>
</div>
<br/>
<hr>
<br/>
</div>

</div>

<!-- General error -->
<div class="panel panel-danger" ng-if="!success">
Expand All @@ -72,4 +36,4 @@
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>
</div>

0 comments on commit 0789ca2

Please sign in to comment.