Skip to content

Commit

Permalink
New analyzer Google DNS over HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 17, 2018
1 parent dd80cd6 commit d143119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 55 deletions.
2 changes: 1 addition & 1 deletion thehive-templates/GoogleDNS_resolve_1_0_0/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="panel-body">
<p><strong>Question : </strong>{{content.Question[0].name}} IN {{content.Question[0].type}}</p>
<p><strong>Comment : </strong>{{content.Comment}}</p>
<table class="table table-hover"">
<table class="table table-hover">
<tr>
<th>Name</th>
<th>Type</th>
Expand Down
57 changes: 3 additions & 54 deletions thehive-templates/GoogleDNS_resolve_1_0_0/short.html
Original file line number Diff line number Diff line change
@@ -1,54 +1,3 @@
<!-- Success !--> <div class="panel panel-info" ng-if="content.Status == 'No Error'" >
<div class="panel-heading" >
<strong> Answer </strong>
</div>
<div class="panel-body">
<p><strong>Question : </strong>{{content.Question[0].name}} IN {{content.Question[0].type}}</p>
<p><strong>Comment : </strong>{{content.Comment}}</p>
<table class="table table-hover"">
<tr>
<th>Name</th>
<th>Type</th>
<th>Data</th>
<th>TTL</th>
</tr>
<tr ng-repeat="row in content.Answer">
<td>
{{row.name}}
</td>
<td>
<strong>{{row.type}}</strong>
</td>
<td>
{{row.data}}
</td>
<td>
{{row.TTL}}
</td>
</tr>
</table>
</div>
</div>

<!-- Success but bad answer !-->
<div class="panel panel-danger" ng-if="content.Error" >
<div class="panel-heading" >
<strong> Answer with error </strong>
</div>
<div class="panel-body">
<p><strong>Question : </strong>{{content.Question[0].name}} IN {{content.Question[0].type}}</p>
<p> <strong> Google DNS service indicate the following error : </strong> {{ content.Error }} </p>
</div>
</div>

<!-- Error !-->
<div class="panel panel-danger" ng-if="!success" >
<div class="panel-heading" >
<strong> Error while running the service </strong>
</div>
<div class="panel-body">
<pre>
{{content.errorMessage}}
</pre>
</div>
</div>
<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 d143119

Please sign in to comment.