-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathresult_section.html
25 lines (23 loc) · 4.53 KB
/
result_section.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="part" ng-show="sections">
<section ng-repeat="sec in sections" class="section" ng-class="{'highlight': hasHighlightedTags(tagTypeList(sectionTags(sec)))}">
<div class="{{sec.heuristic.score | section_color}}"></div>
<div class="indent_{{sec.depth}}" style="width: 100%">
<div class="result_title" data-toggle="collapse" data-target="#{{''+parent+$index}}" ng-class="{'highlight': hasHighlightedTags(tagTypeList(sectionTags(sec)))}"><span class="text-info"><strong><span class="{{sec.classification | class_text_color }}" ng-if="user.c12n_enforcing">({{sec.classification | class_sm}})</span> <span ng-if="sec.heuristic.score" class="{{sec.heuristic.score | score_color}}">{{sec.heuristic.score}}<span class="text-muted"> :: </span></span></strong></span><span replace-tags data="sec.title_text" tags="tagTypeList(sec.tags)"></span></div>
<div id="{{parent+$index}}" class="collapse in">
<div ng-if="sec.body_format=='TEXT'&&sec.body!=null" class="result_body"><div replace-tags data="sec.body" tags="tagTypeList(sec.tags)"></div></div>
<pre ng-if="sec.body_format=='MEMORY_DUMP'&&sec.body!=null" class="result_body">{{sec.body}}</pre>
<div graph-section ng-if="sec.body_format=='GRAPH_DATA'&&sec.body!=null" class="result_body" ng-model="sec.body"></div>
<div url-section ng-if="sec.body_format=='URL'&&sec.body!=null" class="result_body" ng-model="sec.body"></div>
<div ng-if="sec.body_format=='JSON'&&sec.body!=null" class="result_body"><div ng-jsoneditor ng-model="sec.body" options="{'mode': 'view'}" style="width: 100%; height: 300px;"></div></div>
<div kv-section ng-if="sec.body_format=='KEY_VALUE'&&sec.body!=null" class="result_body" ng-model="sec.body"></div>
<div style="margin-left: 2.5em; margin-bottom: .25em;" ng-if="sec.heuristic||sec.tags.length!=0">
<span ng-if="sec.heuristic" title="Malware heuristic: {{sec.heuristic.name}} [{{sec.heuristic.heur_id}}]" class="label label-tag {{sec.heuristic.score | label_color}}" style="cursor: pointer;" ng-class="{'label-highlight': isHighlighted('heuristic', sec.heuristic.heur_id)}" ng-click="trigger_highlight('heuristic', sec.heuristic.heur_id);" >[HEURISTIC] {{sec.heuristic.name | breakableStr }}<a href='/search.html?search_scope=result&query=result.sections.heuristic.name:"{{sec.heuristic.name}}"' class="search_tag clickable_color glyphicon glyphicon-search" ng-click="$event.stopPropagation();"></a></span>
<span ng-if="sec.heuristic.attack.length!=0" ng-repeat="attack in sec.heuristic.attack" title="ATT&CK Pattern: {{attack.pattern}} [{{attack.attack_id}}]" class="label label-tag {{sec.heuristic.score | label_color}}" style="cursor: pointer;" ng-class="{'label-highlight': isHighlighted('attack_pattern', attack.attack_id)}" ng-click="trigger_highlight('attack_pattern', attack.attack_id);">[ATT&CK] {{attack.pattern | breakableStr }}<a href='/search.html?search_scope=result&query=result.sections.heuristic.attack.pattern:"{{uri_encode(attack.pattern)}}"' class="search_tag clickable_color glyphicon glyphicon-search" ng-click="$event.stopPropagation();"></a></span>
<span ng-if="sec.heuristic.signature.length!=0" ng-repeat="signature in sec.heuristic.signature" title="Heuristic Signature: {{signature.name}} [Frequency: {{signature.frequency}}x]" class="label label-tag {{sec.heuristic.score | label_color}}" style="cursor: pointer;" ng-class="{'label-highlight': isHighlighted('heuristic.signature', signature.name)}" ng-click="trigger_highlight('heuristic.signature', signature.name);">[SIGNATURE] {{signature.name | breakableStr }}<span style="display: contents" ng-if="signature.frequency>1"> ({{signature.frequency}}x)</span><a href='/search.html?search_scope=result&query=result.sections.heuristic.signature.name:"{{uri_encode(signature.name)}}"' class="search_tag clickable_color glyphicon glyphicon-search" ng-click="$event.stopPropagation();"></a></span>
<span title="{{tag.type}}: {{tag.value}}" class="label label-tag {{sec.heuristic.score | label_color}}" style="cursor: pointer;" ng-repeat="tag in sec.tags | orderBy:'type'" ng-class="{'label-highlight': isHighlighted(tag.type, tag.value)}" ng-click="trigger_highlight(tag.type, tag.value);" >[{{tag.short_type.toUpperCase()}}] {{tag.value | breakableStr }}<a href='/search.html?search_scope=result&query=result.sections.tags.{{tag.type}}:"{{uri_encode(tag.value)}}"' class="search_tag clickable_color glyphicon glyphicon-search" ng-click="$event.stopPropagation();"></a></span>
</div>
</div>
<div style="min-height: 8px" ng-show="sec.body!=null"></div>
</div>
</section>
</div>