summaryrefslogtreecommitdiff
path: root/src/templates/index.html
blob: 8b2d0c097d2ded8da06230d559fd00fb9684e800 (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
<!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>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <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">
            {% include 'chart.html' %}
        </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="/potm">password of the month</a>
        as your next password</p>
</div>

</body>
</html>