From 3f1296895a96ce02a7e034c19cf941bc1d54fcbd Mon Sep 17 00:00:00 2001 From: user Date: Fri, 22 Mar 2024 13:35:44 +0100 Subject: initial commit, shows data --- src/templates/index.html | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ src/templates/table.html | 20 ++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 src/templates/index.html create mode 100644 src/templates/table.html (limited to 'src/templates') diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..2639cb7 --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,49 @@ + + + + + + SSH login attempts + + + + + + +
+

SSH bots login attempts

+ +
+
+

Have you ever tried having a publicly accessible server with SSH open, do you know what happens?
+ The logs get filled with login attempts
+ Well i decided to log these login attempts, here's the data

+ + Want to avoid this? Use public / private keys and disable password login see this guide: + landchad.net - SSH Keys +
+
+
+
+

Top usernames

+ {% with data=top_usernames %} + {% include 'table.html' %} + {% endwith %} +
+
+

Top passwords

+ {% with data=top_passwords %} + {% include 'table.html' %} + {% endwith %} +
+
+

Latest login attempts

+ {% with data=latest_login_attempts %} + {% include 'table.html' %} + {% endwith %} +
+
+
+ + + \ No newline at end of file diff --git a/src/templates/table.html b/src/templates/table.html new file mode 100644 index 0000000..791c10e --- /dev/null +++ b/src/templates/table.html @@ -0,0 +1,20 @@ + + + + {% for header in data[1] %} + + {% endfor %} + + + + {% for row in data[0] %} + + {% for header in data[1] %} + + {% endfor %} + + {% endfor %} + +
{{ header }}
+ {{ row[header] }} +
\ No newline at end of file -- cgit v1.2.3