From 279ec00990ed0cb5104a89f6dbe1516bb831dca9 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 29 Jun 2023 11:40:57 +0200 Subject: [PATCH] fix: [correlation card decoded meta] mimetype + size --- bin/lib/objects/ail_objects.py | 2 ++ var/www/templates/correlation/metadata_card_decoded.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/lib/objects/ail_objects.py b/bin/lib/objects/ail_objects.py index df598a70..e64d952f 100755 --- a/bin/lib/objects/ail_objects.py +++ b/bin/lib/objects/ail_objects.py @@ -177,6 +177,8 @@ def get_object_card_meta(obj_type, subtype, id, related_btc=False): if subtype == 'bitcoin' and related_btc: meta["related_btc"] = btc_ail.get_bitcoin_info(obj.id) if obj.get_type() == 'decoded': + meta['mimetype'] = obj.get_mimetype() + meta['size'] = obj.get_size() meta["vt"] = obj.get_meta_vt() meta["vt"]["status"] = obj.is_vt_enabled() # TAGS MODAL diff --git a/var/www/templates/correlation/metadata_card_decoded.html b/var/www/templates/correlation/metadata_card_decoded.html index da57cb21..47a6627d 100644 --- a/var/www/templates/correlation/metadata_card_decoded.html +++ b/var/www/templates/correlation/metadata_card_decoded.html @@ -35,7 +35,7 @@ {{ dict_object["metadata_card"]["icon"]["icon"] }} - {{ dict_object["metadata"]["file_type"] }} + {{ dict_object["metadata"]["mimetype"] }} {{ dict_object["metadata"]['first_seen'] }} {{ dict_object["metadata"]['last_seen'] }}