flask-soc-site/flask_soc_site/templates/results-overview-new.html
2025-04-22 14:39:22 +02:00

75 lines
2.4 KiB
HTML

<div class="errors-container">
{% if error in errors %}
<p>
<i>
You may have mistyped: </i><b>{{errors|join(',')}}</b><i>. Try again!</i>
</i>
{% endif %}
</div>
<div class="table-container">
<div class="results-table-new">
<table id="data" class="table table-striped">
<thead>
<th>IP address</th>
<th>VirusTotal</th>
<th>AbuseIPDB</th>
<th>Domain</th>
<th>Registration country</th>
<th>Registration date</th>
<th>Email security</th>
</thead>
<tbody>
{% for host in hosts %}
<tr>
<td>{{host.host}}</td>
<td>Score: {{host.vt['score']}} / {{host.vt['total']}}<br>
Last updated: {{host.vt['last_update']}}<br>
</td>
<td>Score: {{host.abuseipdb['score']}}
Last reported: {{host.abuseipdb['last_reported']}}</td>
<td>{{host.domain}}</td>
<td>{{host.metadata['registrar_country']}}</td>
<td>{{host.metadata['creation_date']}}</td>
<td>SPF: {{host.email_security[0]}}, DMARC: {{host.email_security[1]}}</td>
</tr>
<tr>
<td colspan="7" id="info">
<p>
<b>VirusTotal</b>
<br>
{% if host.vt['score'] > 0 %}
Vendor marked this host as malicious or suspicious:
{{host.vt['vendors']|join(', ')}}
{{host.vt['score']}}
{% else %}
No vendors marked this host as malicious or suspicious.
{% endif %}
<br>
<b>AbuseIPDB</b>
<br>
IP address is: {{host.abuseipdb['IP_address']}}<br>
Is this Tor: {{host.abuseipdb['Tor']}}<br>
Usage: {{host.abuseipdb['usage']}}<br>
<br>
<b>Domain registration</b>
<br>
{% if host.registrar|length %}
Registrar is: {{host.registar}}<br>
{% else %}
No registrar name was found<br>
{% endif %}
<br>
<b>Email security</b>
<br>
<!--DONE: Display some of the metadata info-->
<!--TODO: Display some SPF/DMARC info. To do that, I apparently have to turn host.email_security[x] into a dict. -->
</p>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>