Skip to content

Commit

Permalink
Merge pull request kevoreilly#1962 from enzok/staging-update-01
Browse files Browse the repository at this point in the history
Add malstatus to results
  • Loading branch information
doomedraven authored Feb 13, 2024
2 parents 42eeb79 + 69f6dab commit 017d2c4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/web.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ enabled = no
[malscore]
enabled = no

[malstatus]
enabled = no

[vtupload]
# Don't forget to set VT key in aux.conf under virustotaldl
enabled = no
Expand Down
14 changes: 14 additions & 0 deletions web/templates/analysis/overview/_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
</p>
{% endif %}

{% if config.malscore and analysis.malstatus %}
<p style="text-align:center; font-size: 18px;font-weight-bold";>Status:
{% if analysis.malstatus == "Malicious" %}
<span class="badge badge-danger">{{analysis.malstatus}}</span>
{% elif analysis.malstatus == "Suspicious" %}
<span class="badge badge-warning">{{analysis.malstatus}}</span>
{% elif analysis.malstatus == "Clean" %}
<span class="badge badge-success">{{analysis.malstatus}}</span>
{% else %}
{{analysis.malstatus}}
{% endif %}
</p>
{% endif %}

<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">Analysis {% if settings.REPROCESS_TASKS %} <a class="btn btn-secondary btn-sm" href="{% url "reprocess_tasks" id %}" role="button" data-bs-toggle="tooltip" title="Reprocess the task"><span class="fa-solid fa-rotate"></span></a>{% endif %}</h4>
Expand Down

0 comments on commit 017d2c4

Please sign in to comment.