lookyloo/website/web/templates/historical_lookups.html

94 lines
3.0 KiB
HTML

{% from "macros.html" import shorten_string %}
<div>
{% if not circl_pdns and not riskiq %}
No historical data available
{%else%}
{% if circl_pdns %}
<script type="text/javascript">
new DataTable('#CIRCL_pdns_table', {
order: [[ 1, "desc" ]],
autoWidth: false,
columnDefs: [{ width: '15%', targets: 0 },
{ width: '15%', targets: 1 },
{ width: '10%', targets: 2 },
{ width: '20%', targets: 3 },
{ width: '40%', targets: 4 }]
});
</script>
<center>
<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 %}
<div>
<h3>{{query}}</h3>
<table id= "CIRCL_pdns_table" class="table table-striped" style="width:100%">
<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>
<th class="col-sm-2" scope="col">R Data</th>
<th class="col-sm-2" scope="col">RR Name</th>
</thead>
<tbody>
{%for response in responses %}
<tr>
<td>{{response.time_first_datetime}}</td>
<td>{{response.time_last_datetime}}</td>
<td>{{response.rrtype}}</td>
<td class="text-break">{{response.rdata}}</td>
<td class="text-break">{{response.rrname}}</td>
</tr>
{% endfor %}
</table>
</div>
{%endfor%}
</center>
{% endif%}
{% if riskiq %}
<hr>
<script type="text/javascript">
new DataTable('#RiskIQ_pdns_table', {
order: [[ 1, "desc" ]],
autoWidth: false,
columnDefs: [{ width: '15%', targets: 0 },
{ width: '15%', targets: 1 },
{ width: '10%', targets: 2 },
{ width: '60%', targets: 3 }]
});
</script>
<center>
<h1 class="display-4">RiskIQ</h1>
<div>
<h3>{{riskiq['queryValue']}}</h3>
<h4>{{riskiq['firstSeen']}} - {{ riskiq['lastSeen']}}</h4>
<table id="RiskIQ_pdns_table" class="table table-striped" style="width:100%">
<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 class="col-sm-2" 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 class="text-break">{{entry['resolve']}}</td>
</tr>
{% endfor %}
</table>
</div>
</center>
{% endif%}
{% endif%}
</div>