Skip to content

Commit

Permalink
add note to files
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriy Brukhovetskyy committed Jan 9, 2025
1 parent 1db994b commit 3ea0003
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cuckoo/common/demux.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def demux_sflock(filename: bytes, options: str, check_shellcode: bool = True):
retlist.append(tmp_child)
except Exception as e:
log.error(e, exc_info=True)
return list(filter(None, retlist)), ""
return retlist, ""


def demux_sample(filename: bytes, package: str, options: str, use_sflock: bool = True, platform: str = ""): # -> tuple[bytes, str]:
Expand Down
2 changes: 2 additions & 0 deletions lib/cuckoo/common/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ def init_yara(self, raise_exception: bool = False):
continue

for category_root, _, filenames in os.walk(category_root, followlinks=True):
if category_root.endswith("deprecated"):
continue
for filename in filenames:
if not filename.endswith((".yar", ".yara")):
continue
Expand Down
6 changes: 6 additions & 0 deletions web/templates/analysis/generic/_file_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
</tr>
{% endif %}

{% if file.note %}
<tr>
<th style="border-top: 0; width: 15%;">Note</th>
<td style="border-top: 0; word-wrap: break-word;"><b>{{file.note}}</b></td>
</tr>
{% endif %}
{% if file.cape_type %}
<tr>
<th style="border-top: 0; width: 15%;">Type</th>
Expand Down
6 changes: 6 additions & 0 deletions web/templates/analysis/generic/_subfile_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{% load key_tags %}
<div class="panel panel-default">
<table class="table table-striped table-bordered" style="table-layout: fixed;width: 50%;margin-left: auto;margin-right: auto;">
{% if subfile.note %}
<tr>
<th style="border-top: 0; width: 15%;">Note</th>
<td style="border-top: 0; word-wrap: break-word;"><b>{{subfile.note}}</b></td>
</tr>
{% endif %}
{% if sub_file.cape_type %}
<tr>
<th style="border-top: 0; width: 15%;">Type</th>
Expand Down

0 comments on commit 3ea0003

Please sign in to comment.