forked from kevoreilly/CAPEv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix yara_details for subfiles (kevoreilly#2496)
* Fix template _subfile_info.html * fix yara info for subfiles * added subfile yara templates
- Loading branch information
1 parent
c85a484
commit d7519b0
Showing
3 changed files
with
102 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<section id="static_analysis"> | ||
{% load key_tags %} | ||
<div> | ||
<h4>CAPE Yara Details</h4> | ||
<p></p> | ||
<div id="cape_yara_details"> | ||
{% for hit in sub_file.cape_yara %} | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h5> | ||
<a class="accordion-toggle" data-toggle="collapse" href="#{{hit.name}}" | ||
data-target="#{{hit.name}}" aria-expanded="false"> | ||
{{hit.name}}</a> | ||
</h5> | ||
</div> | ||
<div id="{{hit.name}}" class="collapse"> | ||
<div class="card-body"> | ||
<table class="table table-striped table-bordered" style="table-layout: fixed;"> | ||
{% if hit.strings %} | ||
<tr> | ||
<th style="border-top: 0; width: 15%;">Strings</th> | ||
<td> | ||
<ul style="margin-bottom: 0;"> | ||
{% for string in hit.strings %} | ||
<li>{{string}}</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
{% endif %} | ||
{% if hit.addresses %} | ||
<tr> | ||
<th style="border-top: 0; width: 15%;">String Name: Address</th> | ||
<td> | ||
<ul style="margin-bottom: 0;"> | ||
{% for key, value in hit.addresses.items %} | ||
<li>{{key}}: {{value}}</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
{% endif %} | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<section id="static_analysis"> | ||
{% load key_tags %} | ||
<div> | ||
<h4>Yara Details</h4> | ||
<p></p> | ||
<div id="yara_details"> | ||
{% for hit in sub_file.yara %} | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h5> | ||
<a class="accordion-toggle" data-toggle="collapse" href="#{{hit.name}}" | ||
data-target="#{{hit.name}}" aria-expanded="false"> | ||
{{hit.name}}</a> | ||
</h5> | ||
</div> | ||
<div id="{{hit.name}}" class="collapse"> | ||
<div class="card-body"> | ||
<table class="table table-striped table-bordered" style="table-layout: fixed;"> | ||
{% if hit.strings %} | ||
<tr> | ||
<th style="border-top: 0; width: 15%;">Strings</th> | ||
<td> | ||
<ul style="margin-bottom: 0;"> | ||
{% for string in hit.strings %} | ||
<li>{{string}}</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
{% endif %} | ||
{% if hit.addresses %} | ||
<tr> | ||
<th style="border-top: 0; width: 15%;">String Name: Address</th> | ||
<td> | ||
<ul style="margin-bottom: 0;"> | ||
{% for key, value in hit.addresses.items %} | ||
<li>{{key}}: {{value}}</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
{% endif %} | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</section> |