lookyloo/website/web/templates/misp_lookup.html

40 lines
1.2 KiB
HTML
Raw Normal View History

<center>
<h1 class="display-4">MISP hits</h1>
<h6>Searching on URL, domain, IPs, and CNAMEs for all the nodes up to the rendered page.</h6>
<h6>Skips the entries in warnings lists enabled on your MISP instance.</h6>
{% if misps_occurrences|length > 1 %}
</br>
<hr/>
<label for="mispSelector">Select the MISP instance to search in</label>
</br>
<div class="btn-group" role="group" aria-label="MISP Selector" id="mispSelector">
{%for name in misps_occurrences %}
<button type="button" value="lookup_{{name.replace(' ', '_')}}" class="btn btn-outline-primary {%if name == current_misp%}active{%endif%}" href="#">{{name}}</a></li>
{%endfor%}
</div>
{%endif%}
</center>
2021-06-02 00:35:35 +02:00
<div id="allInstances">
{% for name, occurrences in misps_occurrences.items() %}
<div id="lookup_{{name.replace(' ', '_')}}" {%if name != current_misp%}style="display:none"{%endif%}>
{% set hits, root_url = occurrences %}
2021-06-02 00:35:35 +02:00
{% if hits %}
2021-06-02 22:27:50 +02:00
<ul>
{% for event_id, values in hits.items() %}
2024-03-12 19:48:14 +01:00
<li><a href="{{root_url}}/events/{{event_id}}">Event {{event_id}}</a>:
2021-06-02 22:27:50 +02:00
<ul>
{% for v in values|sort %}
<li>{{ v }}</li>
{% endfor %}
</ul>
</li>
2021-06-02 00:35:35 +02:00
{% endfor %}
2021-06-02 22:27:50 +02:00
</ul>
2021-06-02 00:35:35 +02:00
{% else %}
No hits
{% endif %}
</div>
{% endfor %}
</div>