{% extends "base.html" %} {% set active_page = "Database" %} {% macro button_collapse(button_id, icon, target, tooltip) %} {% endmacro %} {% macro button_tooltip(tooltip, id, url, icon, onclick=None, danger=False, disabled=False) %} {% set button_class = "btn-danger" if danger else "btn-outline-secondary" %} {% set onclick_value = onclick if onclick else "window.location.href = '" + url + firmware.uid + "'" %} {% endmacro %} {% block head %} {# jstree import #} {# highlight.js import #} {# line_numbering.js import #} {% endblock %} {% block body %}
{# Button section #} {# Header section #}

{{ firmware.get_hid(root_uid=root_uid) }}
{% if firmware.analysis_tags or firmware.tags %} {{ firmware.analysis_tags | render_analysis_tags | safe }} {{ firmware.tags | render_tags | safe }}
{% endif %} UID: {{ uid | safe }}

{% if all_analyzed_flag %}
Warning! Not all included files are fully analyzed yet! Only analyzed files are shown.
{% endif %}
{# General info section #}
{{ firmware | render_general_information(root_uid, other_versions, selected_analysis) | safe }}
{% if uids_for_comparison or known_comparisons %}
List of comparisons containing the displayed firmware
{% for comparison in known_comparisons %}
{{ comparison[0] | replace_comparison_uid_with_hid | safe }}
{% endfor %}
Firmware Selected for Comparison
{% if uids_for_comparison|length > 1 %} {% endif %}
{% for compare_uid in uids_for_comparison %}
× {{ compare_uid |replace_uid_with_hid | safe }}
{% endfor %}
{% endif %} {# File tree section #}
File Tree
{# Select analysis section #}
{% for analysis_plugin in firmware.processed_analysis | sort %} {% endfor %}
Analysis Results
{{ analysis_plugin | replace_underscore }}
Run additional analysis
{# add single file analysis modal #} {# Showing analysis section #} {% block complete_analysis_block %}
{% block analysis_result %} {% endblock %} {# summary of included files #} {%- if firmware.vendor and selected_analysis -%}
loading gif

Generating summary of included files...

{%- endif -%}
{% endblock %} {# preview section #} {%- if "file_type" in firmware.processed_analysis -%} {%- set previewable_mime_types = [] -%} {%- if firmware.processed_analysis["file_type"]['mime'] in previewable_mime_types or firmware.processed_analysis["file_type"]['mime'][0:5] == "text/" or firmware.processed_analysis["file_type"]['mime'][0:6] == "image/" %}
loading...
{% endif %} {% endif %}
{# comment section #}
Comments {# Add Comment Button #}
{# Show Comments Button #}
{% if firmware.comments %}
{% for comment in firmware.comments|sort_comments %} {% endfor %}
{{ comment.author }}
{{ comment.time|int|nice_unix_time }}
{{ comment.comment | urlize }} {# Comment Delete Button #} {# Comment Delete Confirm Button #}
{% endif %}
{% endblock %}