-
Notifications
You must be signed in to change notification settings - Fork 0
/
scans.html
118 lines (118 loc) · 3.49 KB
/
scans.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scan Records</title>
<style>
body {
background-color: #0f0f0f;
color: #00ff00;
font-family: 'Courier New', Courier, monospace;
text-align: center;
padding: 50px;
}
h1 {
font-size: 2.5em;
margin-bottom: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 50px;
}
th, td {
border: 1px solid #00ff00;
padding: 10px;
text-align: left;
}
th {
background-color: #1a1a1a;
}
tr:nth-child(even) {
background-color: #1a1a1a;
}
tr:hover {
background-color: #2a2a2a;
}
.alert {
margin-bottom: 10px;
padding: 10px;
border-radius: 5px;
border: 1px solid #00ff00;
color: #000000;
}
.alert-high {
background-color: #ff4c4c;
}
.alert-medium {
background-color: #ff944c;
}
.alert-low {
background-color: #ffff4c;
}
.alert-informational {
background-color: #4cff4c;
}
h3 {
color: #ff0000;
margin-top: 0;
}
strong {
color: #00ff00;
}
</style>
</head>
<body>
<h1>Scan Records</h1>
<table>
<thead>
<tr>
<th>ID</th>
<th>URL</th>
<th>Status</th>
<th>Timestamp</th>
<th>Alerts</th>
<th>Nmap Results</th> <!-- Added column for Nmap Results -->
</tr>
</thead>
<tbody>
{% for record in scan_records %}
<tr>
<td>{{ record.id }}</td>
<td>{{ record.url }}</td>
<td>{{ record.status }}</td>
<td>{{ record.timestamp }}</td>
<td>
{% if record.alerts %}
{% for alert in record.alerts %}
<div class="alert alert-{{ alert.risk | lower }}">
<strong>Risk:</strong> {{ alert.risk }}<br>
<strong>Alert:</strong> {{ alert.alert }}<br>
<strong>Description:</strong> {{ alert.description }}<br>
<strong>URL:</strong> {{ alert.url }}<br>
</div>
{% endfor %}
{% else %}
No alerts found.
{% endif %}
</td>
<td>
{% if record.nmap_results %}
<ul>
{% for result in record.nmap_results %}
<li>
Host: {{ result.host }} | Port: {{ result.port }} | Protocol: {{ result.protocol }} | Service: {{ result.service }}
</li>
{% endfor %}
</ul>
{% else %}
No Nmap results found.
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>