From 9373aae7df7932279519945b954eb5a56d362ad2 Mon Sep 17 00:00:00 2001 From: ClaudioWayne Date: Thu, 25 Sep 2025 16:49:52 +0200 Subject: [PATCH] Only show interactive options and infos when enabled and used (AI improvements) --- web/submission/views.py | 3 ++- web/templates/submission/index.html | 24 ++++++++++++++++++++++-- web/templates/submission/status.html | 6 +++--- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/web/submission/views.py b/web/submission/views.py index 357db1ed676..fdfeb3fa5c4 100644 --- a/web/submission/views.py +++ b/web/submission/views.py @@ -653,6 +653,7 @@ def index(request, task_id=None, resubmit_hash=None): enabledconf["pre_script"] = web_conf.pre_script.enabled enabledconf["during_script"] = web_conf.during_script.enabled enabledconf["downloading_service"] = bool(downloader_services.downloaders) + enabledconf["interactive_desktop"] = web_conf.guacamole.enabled all_vms_tags = load_vms_tags() @@ -775,7 +776,7 @@ def status(request, task_id): "session_data": "", "target": task.sample.sha256 if getattr(task, "sample") else task.target, } - if settings.REMOTE_SESSION: + if web_conf.guacamole.enabled and get_options(task.options).get("interactive") == "1": machine = db.view_machine_by_label(task.machine) if machine: guest_ip = machine.ip diff --git a/web/templates/submission/index.html b/web/templates/submission/index.html index 8dc3f72eb10..ca6e31dbcba 100644 --- a/web/templates/submission/index.html +++ b/web/templates/submission/index.html @@ -674,16 +674,18 @@ Disable automated interaction + {% if config.interactive_desktop %}
+ {% endif %} {% if config.kernel %}
+ {% endblock %} diff --git a/web/templates/submission/status.html b/web/templates/submission/status.html index cc5d42217d0..67eedd5d466 100644 --- a/web/templates/submission/status.html +++ b/web/templates/submission/status.html @@ -15,10 +15,10 @@

Status for task {{task_id}} - {{ target }}

The analysis is not finished yet, it's still {{status}}. This page will refresh every 30 seconds.

{% if session_data %}

To view the Remote Session - click here.

-
-
-
{% endif %} +
+
+
{% endif %} {% endblock %}