Skip to content

Commit

Permalink
#53 Move analyzers' report template to TheHive contrib directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jan 11, 2017
1 parent 78bac91 commit cf8d310
Show file tree
Hide file tree
Showing 40 changed files with 1,444 additions and 1 deletion.
46 changes: 46 additions & 0 deletions contrib/report-templates/DNSDB_DomainName_1_1/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<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>

<div class="panel panel-info" ng-if="success" ng-init="recordsLimit=20">
<div class="panel-heading">
<strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong>
<a ng-show="::content.records.length > 20" class="pull-right" href ng-click="recordsLimit=undefined">View All ({{::content.records.length}})</a>
</div>
<div class="panel-body">
<p>
DNSDB Domain Name History Report <em>(RRSET)</em>
</p>
<table class="table table-hover">
<thead>
<tr>
<th width="50">#</th>
<th>bailiwick</th>
<th>count</th>
<th>rdata</th>
<th>rrname</th>
<th width="120">time first</th>
<th width="120">time last</th>
</tr>
</thead>
<tbody ng-repeat="row in content.records | limitTo:recordsLimit">
<tr>
<td>{{$index+1}}</td>
<td>{{row.bailiwick}}</td>
<td>{{row.count}}</td>
<td class="wrap">
<div ng-repeat="rdata in row.rdata track by $index">{{rdata}}</div>
</td>
<td class="wrap">{{row.rrname}}</td>
<td>{{(row.zone_time_first || row.time_first) | shortDate}}</td>
<td>{{(row.zone_time_last || row.time_last) | shortDate}}</td>
</tr>
</tbody>
</table>
</div>
</div>
1 change: 1 addition & 0 deletions contrib/report-templates/DNSDB_DomainName_1_1/short.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span ng-if="content.records" class="label label-info">DNSDB Domain Name: {{content.records}} records</span>
43 changes: 43 additions & 0 deletions contrib/report-templates/DNSDB_IPHistory_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<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>

<div class="panel panel-info" ng-if="success" ng-init="recordsLimit=20">
<div class="panel-heading">
<strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong>
<a ng-show="::content.records.length > 20" class="pull-right" href ng-click="recordsLimit=undefined">View All ({{::content.records.length}})</a>
</div>
<div class="panel-body">
<p>
DNSDB IP History Report
<em>(Rdata IP)</em>
</p>
<table class="table">
<thead>
<tr>
<th width="50">#</th>
<th>count</th>
<th>rdata</th>
<th>rrname</th>
<th>rrtype</th>
<th width="120">time first</th>
<th width="120">time last</th>
</tr>
</thead>
<tbody ng-repeat="row in content.records | limitTo:recordsLimit">
<td>{{$index + 1}}</td>
<td>{{row.count}}</td>
<td class="wrap">{{row.rdata}}</td>
<td> class="wrap"{{row.rrname}}</td>
<td>{{row.rrtype}}</td>
<td>{{(row.zone_time_first || row.time_first) | shortDate}}</td>
<td>{{(row.zone_time_last || row.time_last) | shortDate}}</td>
</tbody>
</table>
</div>
</div>
1 change: 1 addition & 0 deletions contrib/report-templates/DNSDB_IPHistory_1_0/short.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span ng-if="content.records" class="label label-info">DNSDB IP History: {{content.records}} records</span>
42 changes: 42 additions & 0 deletions contrib/report-templates/DNSDB_NameHistory_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<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>

<div class="panel panel-info" ng-if="success" ng-init="recordsLimit=20">
<div class="panel-heading">
<strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong>
<a ng-show="::content.records.length > 20" class="pull-right" href ng-click="recordsLimit=undefined">View All ({{::content.records.length}})</a>
</div>
<div class="panel-body">
<p>
DNSDB Name History Report<em>(Rdata Name)</em>
</p>
<table class="table">
<thead>
<tr>
<th width="50">#</th>
<th>count</th>
<th>rdata</th>
<th>rrname</th>
<th>rrtype</th>
<th width="120">time first</th>
<th width="120">time last</th>
</tr>
</thead>
<tbody ng-repeat="row in content.records | limitTo:recordsLimit">
<td>{{$index + 1}}</td>
<td>{{row.count}}</td>
<td class="wrap">{{row.rdata}}</td>
<td class="wrap">{{row.rrname}}</td>
<td>{{row.rrtype}}</td>
<td>{{row.time_first | shortDate}}</td>
<td>{{row.time_last | shortDate}}</td>
</tbody>
</table>
</div>
</div>
1 change: 1 addition & 0 deletions contrib/report-templates/DNSDB_NameHistory_1_0/short.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span ng-if="content.records" class="label label-info">DNSDB Name History: {{content.records}} records</span>
30 changes: 30 additions & 0 deletions contrib/report-templates/DomainTools_ReverseIP_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<div class="panel panel-info" ng-if="success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Domains count</dt>
<dd>{{content.ip_addresses.domain_count}}</dd>
</dl>
<dl class="dl-horizontal">
<dt>Domain Names</dt>
<dd>
<ul class="list list-unstyled">
<li ng-repeat="dn in content.ip_addresses.domain_names">
{{dn}}
</li>
</ul>
</dd>
</dl>
</div>
</div>

<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span ng-if="content.ip.address || content.ip.domain_count" class="label label-info">{{content.ip.address}}: {{content.ip.domain_count}} domains found</span>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>
<div class="panel panel-info" ng-if="success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Name Server</dt>
<dd>{{content.name_server.hostname}}</dd>
</dl>
<dl class="dl-horizontal">
<dt>Primary domains</dt>
<dd>
{{content.name_server.primary}}<br>
<a href ng-click="isPCollapsed = !isPCollapsed">Show all</a>
</dd>
</dl>
<dl class="dl-horizontal">
<dt>Secondary domains</dt>
<dd>
{{content.name_server.secondary}}<br>
<a href ng-click="isSCollapsed = !isSCollapsed">Show all</a>
</dd>
</dl>

<div ng-if="isPCollapsed">
<h5>Primary Domains List</h5>
<pre style="height: 300px">{{content.primary_domains | json}}</pre>
</div>
<div ng-if="isSCollapsed">
<h5>Secondary Domains List</h5>
<pre style="height: 300px">{{content.secondary_domains | json}}</pre>
</div>

</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span ng-if="content.name_server" class="label label-info">Hostname: {{content.name_server}}, {{content.domain_count}} domains</span>
34 changes: 34 additions & 0 deletions contrib/report-templates/DomainTools_ReverseWhois_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<div class="panel panel-info" ng-if="success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Current Domains</dt>
<dd>{{content.domain_count.current}}</dd>
</dl>
<dl class="dl-horizontal">
<dt>Historic Domains</dt>
<dd>{{content.domain_count.historic}}</dd>
</dl>
<dl class="dl-horizontal">
<dt>Domains</dt>
<dd>
<ul class="list list-unstyled">
<li ng-repeat="dn in content.domains">
{{dn}}
</li>
</ul>
</dd>
</dl>
</div>
</div>

<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<span ng-if="content.domain_count.current || content.domain_count.historic" class="label label-info">
Domains found: curr:{{content.domain_count.current}}/hist:{{content.domain_count.historic}}
</span>
48 changes: 48 additions & 0 deletions contrib/report-templates/DomainTools_WhoisHistory_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>

<div class="panel panel-info" ng-if="success" ng-init="recordsLimit=20">
<div class="panel-heading">
<strong>{{artifact.data| fang}}</strong>
<a ng-show="::content.history.length > 20" class="pull-right" href ng-click="recordsLimit=undefined">View All ({{::content.history.length}})</a>
</div>
<div class="panel-body">
<div ng-if="content.record_count === 0">No records found</div>
<table class="table table-hover" ng-if="content.record_count > 0">
<thead>
<tr>
<th width="50">#</th>
<th width="120">date</th>
<th>server names</th>
<th>registrant</th>
<th>registrar</th>
<th>expiration</th>
<th>statuses</th>
</tr>
</thead>
<tbody ng-repeat="row in content.history | limitTo:recordsLimit">
<td>{{$index + 1}}</td>
<td>{{row.date}}</td>
<td class="wrap">
<ul class="list-unstyled">
<li ng-repeat="ns in row.whois.name_servers">{{ns}}</li>
</ul>
</td>
<td>{{row.whois.registrant}}</td>
<td>{{row.whois.registration.registrar}}</td>
<td>{{row.whois.registration.expires}}</td>
<td class="wrap">
<ul class="list-unstyled">
<li ng-repeat="st in row.whois.registration.statuses">{{st}}</li>
</ul>
</td>
</tbody>
</table>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<span ng-if="content.registrant" class="label label-info">REGISTRANT: {{content.registrant}}</span>
<span ng-if="content.registrar" class="label label-info">REGISTRAR: {{content.registrar}}</span>
21 changes: 21 additions & 0 deletions contrib/report-templates/DomainTools_WhoisLookup_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>

<div class="panel panel-info" ng-if="success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Date of record</dt>
<dd>{{content.whois.date}}</dd>
</dl>
<pre>{{content.whois.record}}</pre>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<span ng-if="content.registrant" class="label label-info">REGISTRANT: {{content.registrant}}</span>
<span ng-if="content.registrar" class="label label-info">REGISTRAR: {{content.registrar}}</span>
21 changes: 21 additions & 0 deletions contrib/report-templates/DomainTools_WhoisLookup_IP_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>

<div class="panel panel-info" ng-if="success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Date of record</dt>
<dd>{{content.whois.date}}</dd>
</dl>
<pre>{{content.whois.record}}</pre>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<span ng-if="content.registrant" class="label label-info">REGISTRANT: {{content.registrant}}</span>
<span ng-if="content.registrar" class="label label-info">REGISTRAR: {{content.registrar}}</span>
Loading

0 comments on commit cf8d310

Please sign in to comment.