Skip to content

Commit

Permalink
#56 Virusshare() and short reports + bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 20, 2017
1 parent 355913c commit 4a24c01
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
58 changes: 58 additions & 0 deletions thehive-templates/Virusshare_2_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<div class="panel panel-danger" ng-if="success && content.isonvs && content.isonvs != 'unknown'">
<div class="panel-heading">
Virusshare Report
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>MD5</dt>
<dd>{{content.md5}}</dd>
<dt></dt>
<dd>
<form method="POST" action="https://virusshare.com/search.4n6" target="_blank">
<input type="hidden" value="{{content.md5}}" name="search">
<input class="btn btn-danger" type="submit" value="Open on Virusshare.com (Login first!)">
</form>
</dd>
</dl>
</div>
</div>
<div class="panel panel-danger" ng-if="success && content.isonvs === 'unknown'">
<div class="panel-heading">
Virusshare Report
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Error</dt>
<dd>{{content.hash}} is not MD5</dd>
<dt></dt>
<dd>Still try to search:<br />
<form method="POST" action="https://virusshare.com/search.4n6" target="_blank">
<input type="hidden" value="{{content.hash}}" name="search">
<input class="btn btn-danger" type="submit" value="Open on Virusshare.com (Login first!)">
</form>
</dd>
</dl>
</div>
</div>

<div class="panel panel-success" ng-if="success && !content.isonvs">
<div class="panel-heading">
Virusshare Report
</div>
<div class="panel-body">
<span>No match.</span>
</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">
<dl class="dl-horizontal" ng-if="content.errorMessage">
<dt><i class="fa fa-warning"></i> PassiveDNS: </dt>
<dd class="wrap">{{content.errorMessage}}</dd>
</dl>
</div>
</div>
3 changes: 3 additions & 0 deletions thehive-templates/Virusshare_2_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>&nbsp;

0 comments on commit 4a24c01

Please sign in to comment.