lookyloo/website/web/templates/historical_lookups.html

72 lines
1.9 KiB
HTML
Raw Normal View History

{% from "macros.html" import shorten_string %}
<div>
{% if not circl_pdns and not riskiq %}
No historical data available
{%else%}
2023-12-12 16:19:01 +01:00
{% if circl_pdns %}
<center>
2023-12-13 11:10:18 +01:00
<h1 class="display-4">CIRCL Passive DNS
<div class="help-tip" title="Click for more details"
onclick="location.href='https://www.circl.lu/services/passive-dns/';"
style="cursor: pointer;">
</div>
</h1>
{% for query, responses in circl_pdns.items() if responses %}
2023-12-12 16:19:01 +01:00
<div>
<h3>{{query}}</h3>
<table class="table">
<thead>
<tr>
<th class="col-sm-2" scope="col">First seen</th>
<th class="col-sm-2" scope="col">Last seen</th>
<th class="col-sm-1" scope="col">RR Type</th>
2023-12-13 11:10:18 +01:00
<th class="col-sm-2" scope="col">R Data</th>
<th scope="col">RR Name</th>
2023-12-12 16:19:01 +01:00
</thead>
<tbody>
{%for response in responses %}
<tr>
<td>{{response.time_first_datetime}}</td>
<td>{{response.time_last_datetime}}</td>
2023-12-13 11:10:18 +01:00
<td>{{response.rrtype}}</td>
2023-12-12 16:19:01 +01:00
<td>{{response.rdata}}</td>
<td>{{response.rrname}}</td>
</tr>
{% endfor %}
</table>
</div>
{%endfor%}
</center>
{% endif%}
{% if riskiq %}
2023-12-13 11:10:18 +01:00
<hr>
<center>
<h1 class="display-4">RiskIQ</h1>
<div>
<h3>{{riskiq['queryValue']}}</h3>
<h4>{{riskiq['firstSeen']}} - {{ riskiq['lastSeen']}}</h4>
<table class="table">
<thead>
<tr>
<th class="col-sm-2" scope="col">First seen</th>
<th class="col-sm-2" scope="col">Last seen</th>
<th class="col-sm-1" scope="col">Type</th>
<th scope="col">Resolve</th>
</thead>
<tbody>
{% for entry in riskiq['results'] %}
<tr>
<td>{{entry['firstSeen']}}</td>
<td>{{entry['lastSeen']}}</td>
<td>{{entry['recordType']}}</td>
<td>{{entry['resolve']}}</td>
</tr>
{% endfor %}
</table>
</div>
</center>
{% endif%}
{% endif%}
</div>