45 lines
2.8 KiB
HTML
45 lines
2.8 KiB
HTML
|
{% extends 'master.html' %}
|
||
|
|
||
|
{% block body %}
|
||
|
<h3 align="center">Query</h3>
|
||
|
|
||
|
|
||
|
<table align="center">
|
||
|
<tr><td>
|
||
|
<div style="text-align:center">{{ pprint(search.params) }}</div>
|
||
|
</td></tr>
|
||
|
</table>
|
||
|
<br>
|
||
|
<table align="center" width="80%" border="1px">
|
||
|
<tr style="background-color: #f2f2f2"><td colspan="2" align="center"> <h1>Search Results, page {{ page }} of {{ npages }}</h1>
|
||
|
<h3>{% if page != 1 %} <a href="/search/{{ search.num }}/{{ page - 1 }}?{{ qstring }}">Prev</a> {% endif %}{% if page != npages %} {% if page != 1 %} - {% endif %} <a href="/search/{{ search.num }}/{{ page + 1}}?{{ qstring }}">Next</a> {% endif %}</h3>
|
||
|
</td></tr>
|
||
|
</table>
|
||
|
|
||
|
<table align="center">
|
||
|
<tr>
|
||
|
<th style="text-align: center;"><a href="/search/{{ search.num }}/1?sort=id{{ '&reverse=yes' if search.sorting == 'id' and not reverse }}">ID</th>
|
||
|
<th style="text-align: center;"><a href="/search/{{ search.num }}/1?sort=timestamp{{ '&reverse=yes' if search.sorting == 'timestamp' and not reverse }}">Timestamp</th>
|
||
|
<th style="text-align: center;"><a href="/search/{{ search.num }}/1?sort=duration{{ '&reverse=yes' if search.sorting == 'duration' and not reverse }}">Duration</th>
|
||
|
<th style="text-align: center;">Source Host</th>
|
||
|
<th style="text-align: center;">Destination</th>
|
||
|
<th style="text-align: center;"><a href="/search/{{ search.num }}/1?sort=src_size_sent{{ '&reverse=yes' if search.sorting == 'src_size_sent' and not reverse }}">Source size</th>
|
||
|
<th style="text-align: center;"><a href="/search/{{ search.num }}/1?sort=dst_size_sent{{ '&reverse=yes' if search.sorting == 'dst_size_sent' and not reverse }}">Dest size</th>
|
||
|
<th style="text-align: center;">Flags</th>
|
||
|
</tr>
|
||
|
{% for md in load_metadata(search.results[(page-1)*page_size:page*page_size] if not reverse else search.results[-page*page_size:-(page-1)*page_size if page != 1 else None], reverse=reverse) %}
|
||
|
<tr class="connection_row" data-id="{{ md['id'] }}" >
|
||
|
<td align="center"><a href="/connection/{{ md['id'] }}" target="_blank">{{ md['id'] }}</a></td>
|
||
|
<td align="center">{{ md['timestamp_str'] }}</td>
|
||
|
<td align="center"{% if md['duration'] > 60 %} style="font-weight:bold;" {% endif %}>{{ md['duration_str'] }}</td>
|
||
|
<td align="center">{{ md['src_boot_name'] }}</td>
|
||
|
<td align="center">{{ md['service'] }}</td>
|
||
|
<td align="center">{{ md['src_size_sent'] }}</td>
|
||
|
<td align="center">{{ md['dst_size_sent'] }}</td>
|
||
|
<td align="center">{{ '/'.join([] + (['SYN'] if md['syn'] else []) + (['SYNACK'] if md['synack'] else []) + (['FIN'] if md['fin'] else []) + (['RST'] if md['RST'] else [])) }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
<br><br>
|
||
|
{% endblock %}
|