niku-client/app/templates/view_connection.html

135 lines
5.0 KiB
HTML

{% extends 'master.html' %}
{% block body %}
<h3 align="center">Connection {{ md['id'] }}</h3>
<table align="center" width="80%" border="1px">
<tr style="background-color: #f2f2f2"><td colspan="2" align="center"><h1>Metadata</h1>
</td></tr>
</table>
<br>
</p>
<table width="80%" align="center">
<tr>
<th style="text-align:center">filename</th>
</tr>
<tr>
<td width="20%" align="center">{{ connection['local_filename'] }}</td>
</tr>
</table>
<br>
<table width="80%" align="center">
<tr>
<th style="text-align:center">ID</th>
<th style="text-align:center">dst</th>
<th style="text-align:center">dst_boot</th>
<th style="text-align:center">dst_content_sent</th>
<th style="text-align:center">dst_nonprintables</th>
</tr>
<tr>
<td width="20%" align="center">{{ connection['id'] }}</td>
<td width="20%" align="center">{{ connection['dst'] }}</td>
<td width="20%" align="center">{{ connection['dst_boot'] }}</td>
<td width="20%" align="center">{{ connection['dst_content_sent'] }}</td>
<td width="20%" align="center">{{ connection['dst_nonprintables'] }}</td>
</tr>
</table>
<br>
<table width="80%" align="center">
<tr>
<th style="text-align:center">dst_port</th>
<th style="text-align:center">dst_printables</th>
<th style="text-align:center">dst_size_sent</th>
<th style="text-align:center">duration</th>
<th style="text-align:center">fin</th>
</tr>
<tr>
<td width="20%" align="center">{{ connection['dst_port'] }}</td>
<td width="20%" align="center">{{ connection['dst_printables'] }}</td>
<td width="20%" align="center">{{ connection['dst_size_sent'] }}</td>
<td width="20%" align="center">{{ connection['duration'] }}</td>
<td width="20%" align="center">{{ connection['fin'] }}</td>
</table>
<br>
<table width="80%" align="center">
<tr>
<th style="text-align:center">index_prefix</th>
<th style="text-align:center">num_packets</th>
<th style="text-align:center">processed</th>
<th style="text-align:center">protocol</th>
<th style="text-align:center">rst</th>
</tr>
<tr>
<td width="20%" align="center">{{ connection['index_prefix'] }}</td>
<td width="20%" align="center">{{ connection['num_packets'] }}</td>
<td width="20%" align="center">{{ connection['processed'] }}</td>
<td width="20%" align="center">{{ connection['protocol'] }}</td>
<td width="20%" align="center">{{ connection['rst'] }}</td>
</tr>
</table>
<br>
<table width="80%" align="center">
<th style="text-align:center">size</th>
<th style="text-align:center">src</th>
<th style="text-align:center">src_boot</th>
<th style="text-align:center">src_content_sent</th>
<th style="text-align:center">src_nonprintables</th>
</tr>
<tr>
<td width="20%" align="center">{{ connection['size'] }}</td>
<td width="20%" align="center">{{ connection['src'] }}</td>
<td width="20%" align="center">{{ connection['src_boot'] }}</td>
<td width="20%" align="center">{{ connection['src_content_sent'] }}</td>
<td width="20%" align="center">{{ connection['src_nonprintables'] }}</td>
</tr>
</table>
<br>
<table width="80%" align="center">
<th style="text-align:center">src_port</th>
<th style="text-align:center">src_printables</th>
<th style="text-align:center">src_size_sent</th>
<th style="text-align:center">syn</th>
</tr>
<tr>
<td width="25%" align="center">{{ connection['src_port'] }}</td>
<td width="25%" align="center">{{ connection['src_printables'] }}</td>
<td width="25%" align="center">{{ connection['src_size_sent'] }}</td>
<td width="25%" align="center">{{ connection['syn'] }}</td>
</tr>
</table>
<br>
<table width="80%" align="center">
<th style="text-align:center">synack</th>
<th style="text-align:center">tags</th>
<th style="text-align:center">timestamp</th>
<th style="text-align:center">timestamp_seconds</th>
</tr>
<tr>
<td width="25%" align="center">{{ connection['synack'] }}</td>
<td width="25%" align="center">{{ connection['tags'] }}</td>
<td width="25%" align="center">{{ connection['timestamp'] }}</td>
<td width="25%" align="center">{{ connection['timestamp_seconds'] }}</td>
</tr>
</table>
<br>
<script>
launch_stream_viewer({{ stream_data|safe }}, {{ hex_width }});
</script>
<div id="stream_viewer_deploy"></div>
{% endblock %}