-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.html
More file actions
142 lines (131 loc) · 4.13 KB
/
dashboard.html
File metadata and controls
142 lines (131 loc) · 4.13 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{% include 'base.html' %}
{% load static %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
<br>
<h1 style="padding-left: 30px;">Open Exploit Dashboard</h1>
<!-- Bootstrap Alert -->
{% if download_failures != 0 %}
<div class="container-fluid" style="padding-left: 30px;">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<i class="bi bi-exclamation-circle" style="font-size: 24px;"></i> <a class="alert-link" href="{{request.path}}admin/exploit/exploit/?download_failed__exact=1&ignore__exact=0">{{download_failures}} error(s)</a> identified
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" style="margin-top: 7px;"></button>
</div>
</div>
</div>
</div>
{% endif %}
<br>
<div class="row" style="padding-left: 30px; padding-right: 30px">
<!-- Card 1 -->
<div class="col-sm-4">
<div class="card border-start-lg border-start-primary">
<div class="card-body">
<div class="card-header text-primary mb-3">Exploits Added in the Last 24 Hours</div>
<h4 > <b>{{24_hours}}</b> </h4>
</div>
</div>
</div>
<!-- Card 2 -->
<div class="col-sm-4">
<div class="card border-start-lg border-start-danger">
<div class="card-body">
<div class="card-header text-danger mb-3">Exploits Added in the Last 7 Days</div>
<h4 > <b>{{7_days}}</b></h4>
</div>
</div>
</div>
<!-- Card 3 -->
<div class="col-sm-4">
<div class="card border-start-lg border-start-success">
<div class="card-body">
<div class="card-header text-success mb-3">Total Exploits Collected </div>
<h4><b> {{exploits_count}}</b></h4>
</div>
</div>
</div>
</div>
<br>
<div class="row" style="padding-left: 20px; padding-right: 20px; padding-top: 20px;">
<div class="col-sm-8" style="padding-right: .8rem">
<figure class="highcharts-figure">
<div id="container">
</div>
</figure>
</div>
<!-- Card 4 -->
<div class="col-sm-4">
<div class="card border-start-lg border-start-success">
<div class="card-body">
<h5 class="card-header text-success mb-3">Breakdown by Source
</h5>
<table class="table table-striped">
<thead>
<tr>
<th>Source</th>
<th>Count</th>
<th> Percentage</th>
<th >         </th>
</tr>
</thead>
<tbody>
{% for source in sources %}
<tr>
<td>{{source.source}}</td>
<td> {{source.count}}</td>
<td> {{source.percentage}} %</td>
<td>
<div class="progress" role="progressbar" aria-label="Example 1px high" aria-valuenow="{{source.percentage}}" aria-valuemin="0" aria-valuemax="100" style="height: 3px">
<div class="{{source.color}}" style="width: {{source.percentage}}%"></div>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Highchart -->
<script>
Highcharts.chart('container', {
chart: {
type: 'spline',
scrollablePlotArea: {
minWidth: 700,
scrollPositionX: 1
}
},
title: {
text: 'Exploits Added by Month in {{year}}',
align: 'left',
},
data: {
dateFormat: 'mm/dd/YYYY'
},
plotOptions: {
series: {
marker: {
enabled: false
},
lineWidth: 2
}
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
accessibility: {
description: 'Months of the year'
},
overflow: 'justify'
},
yAxis: {
title:{
text: 'Exploits Added'
}
},
series:{{data|safe}}
});
</script>