Made database queries a thing for filtering. Tweaked gitignore again oof, added a toggle listener for marking hosts on the web page

This commit is contained in:
rain
2023-05-24 23:04:19 -05:00
parent 12ec70ea0c
commit 9f6e22875c
7 changed files with 51 additions and 30 deletions
Binary file not shown.
+1 -1
View File
@@ -24,5 +24,5 @@
{% block main %}
<h1>404</h1>
<p>That page doesn't even exist.</p>
<p>Why don't you just <a href="{{ url_for('home') }}">go back home</a>?</p>
<p>Why don't you just <a href="{{ url_for('get_home') }}">go back home</a>?</p>
{% endblock %}
+8 -8
View File
@@ -7,26 +7,26 @@
<table id="scan-table">
<thead>
<tr class="table-header">
<th>OS</td>
<th>HOSTNAME</td>
<th>ADDRESS</td>
<th><input type="text" name="ports" id="ports" placeholder="ports"></td>
<form method="POST">
<input type="submit" value="Submit Query" hidden>
<th><input type="text" name="os" id="os" placeholder="OS" value="{{ os }}"></th>
<th><input type="text" name="hostname" id="hostname" placeholder="HOSTNAME" value="{{ hostname }}"></th>
<th><input type="text" name="address" id="address" placeholder="ADDRESS" value="{{ address }}"></th>
<th><input type="text" name="ports" id="ports" placeholder="PORTS" value="{{ ports }}"></th>
</form>
</tr>
</thead>
<tbody>
{% for target in targets %}
<tr>
<td class='{{target.os|lower}}'><img onerror="this.onerror=null;this.src='static/media/unsure.png';" src='static/media/{{target.os|lower}}.png'></td>
<td>{{ target.hostname }}</td>
<td>{{ target.address }}</td>
<td>{{ target.ports }}</td>
<td>{{ target.ports[1:-1]|replace('|', ', ') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}