1
0
Fork 0
No description
This repository has been archived on 2025-11-23. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 77.4%
  • Makefile 16.7%
  • Shell 5.9%
Find a file
2021-12-08 00:46:28 +01:00
.gitignore Avoid uploading the database 2021-12-08 00:46:24 +01:00
anaAuthLog.path no installation without install section, typo in UnitName, for some weird reason I get an error when using "" in PathChanged 2021-04-01 23:52:21 +02:00
anaAuthLog.py Switch to database setup 2021-12-08 00:44:53 +01:00
anaAuthLog.service move script into own directory in /root 2021-04-01 19:04:57 +02:00
countries.geojson initial commit 2021-04-01 14:20:55 +02:00
cpyLog.bash fixed bug of 'wrong' return value -> crash and globbing error in loop 2021-05-24 19:45:23 +02:00
create.sql Switch to database setup 2021-12-08 00:44:53 +01:00
dat2Database.py Switch to database setup 2021-12-08 00:44:53 +01:00
Makefile collapse phony 2021-04-12 22:27:59 +02:00
README.md +gitignore, drop noVenv support, venv init on start 2021-04-01 16:40:08 +02:00
requirements.txt initial commit 2021-04-01 14:20:55 +02:00
test.py add example for slider/animation 2021-12-08 00:46:28 +01:00
wikipedia-iso-country-codes.csv initial commit 2021-04-01 14:20:55 +02:00

Analyse auth.log files in aspects of bad logins

This script will analyse the LOCAL copies of the auth.log files for bad logins and show graphs from where the logins might have come from, how many on which day there were and the 5 most frequently usernames.

For location tracking the whois command needs to be installed. The output of this command will be used to estimate the location of the bad login (remember, this can be spoofed via proxy or VPN).

See the requirements.txt for the required python packages, these can be installed via pip install -r requirements.txt. Note that there can be version conflicts with globally installed python packages, I therefore use python virtualenironments. (This should all happen automatically on first use)

See the Makefile for (un)installation of systemd-units to automatically collect the generated auth.logs.

Usage

  • Use make run to analyse the collceted auth.log files
  • Consider installing a systemD Unit which collects the auth.log files automatially via make install (undo with make uninstall)

Improvements

The geo tracking requests will be cached to reduce load of the servers of the whois protocol