flask-soc-site/templates/domain.html
2024-08-29 21:30:59 +02:00

111 lines
2.6 KiB
HTML

{% if result %}
<div>
<p>domain</p>
<table id="data" class="table table-striped">
<thead>
<tr>
<th>URL</th>
<th>creation date</th>
<th>registrar</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ result.metadata['domain_name'] }}</td>
<td>{{ result.metadata['creation_date'] }}</td>
<td>{{ result.metadata['registrar'] }}</td>
</tr>
</tbody>
</table>
<table id="spf_dmarc" class="table table-striped">
<thead>
<tr>
<th>DMARC record</th>
<th>DMARC validity</th>
<th>SPF record</th>
<th>SPF validity</th>
<th>SPF dns lookups</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ result.emailsec[0]['record'] }}</td>
<td>{{ result.emailsec[0]['valid'] }}</td>
<td>{{ result.emailsec[1]['record'] }}</td>
<td>{{ result.emailsec[1]['valid'] }}</td>
<td>{{ result.emailsec[1].keys() }}</td>
{% for item in result.emailsec[1]['parsed']%}
<td>{{ item }}</td>
{% endfor %}
</tr>
</tbody>
<table id="abuseipdb" class="table table-striped">
<thead>
<tr>
<th>Abuse IPDB confidence score</th>
<th>Total reports</th>
<th>Last reported</th>
<th>Tor or not</th>
<th>Hostnames</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ result.abuseipdb.data.abuseConfidenceScore }}</td>
<td>{{ result.abuseipdb.data.totalReports }}</td>
<td>{{ result.abuseipdb.data.lastReportedAt }}</td>
<td>{{ result.abuseipdb.data.isTor }}</td>
<td>{{result.abuseipdb.data.hostnames }}</td>
</tr>
</tbody>
</table>
</table>
<table id="virustotal_stats" class="table table-striped">
<thead>
<tr>
<th>Malicious</th>
<th>Suspicous</th>
<th>Undetected</th>
<th>Harmless</th>
<th>Timeout</th>
</tr>
</thead>
<tbody>
<tr>
{% for value in result.vt.data.attributes.last_analysis_stats.values()
%}
<td>{{ value }}</td>
{% endfor %}
</tr>
</tbody>
</table>
<table id="virustotal_all_vendors" class="table table-striped">
<thead>
<tr>
<th>Vendor name</th>
<th>Results</th>
</tr>
</thead>
<tbody>
{% for value in result.vt.data.attributes.last_analysis_results.values()
%}
<tr>
<td>{{ value.engine_name }}</td>
<td>{{ value.result }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% elif results %}
<div>
<p>VISUALIZE</p>
</div>
{% endif %}