blob: e5f602b6832c4dea7d87cbb1a1c5c13d88bffa22 (
plain)
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
|
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SSH login attempts</title>
<link rel="stylesheet" href="/bootstrap-5.3.3-dist/css/bootstrap.min.css">
<script src="/chartjs/chart.umd.js" defer></script>
<script type="module" src="/histogram.js" defer></script>
</head>
<body>
<div class="container">
<h1>SSH bots login attempts</h1>
<div class="row">
<div class="col">
<p>Have you ever tried having a publicly accessible server with SSH open, do you know what happens?<br>
The logs get filled with login attempts<br>
Well i decided to log these login attempts, here's the data<br></p>
Want to avoid this? Use public / private keys and disable password login see this guide:
<a href="https://landchad.net/sshkeys/">landchad.net - SSH Keys</a>
</div>
</div>
<div class="row">
<div class="col">
<canvas id="histogram"></canvas>
</div>
</div>
<div class="row">
<div class="col">
<h3>Top usernames</h3>
{% with data=top_usernames %}
{% include 'table.html' %}
{% endwith %}
</div>
<div class="col">
<h3>Top passwords</h3>
{% with data=top_passwords %}
{% include 'table.html' %}
{% endwith %}
</div>
<div class="col">
<h3>Latest login attempts</h3>
{% with data=latest_login_attempts %}
{% include 'table.html' %}
{% endwith %}
</div>
</div>
<p>Do you like living life dangerously? use <a href="/password_of_the_month">password of the month</a>
as your next password</p>
</div>
<script defer>
var data = {{ histogram_data|safe }};
var labels = {{ histogram_labels|safe }};
</script>
</body>
</html>
|