SLANotifier is a tool written in Python to report the status of the CyberChallenge A/D services that I developed for the UNISA team, the tool was initially born only as a pop-up notification tool that signals when a service goes down, but later I wrote a part that can be activated or not that generates a report with the total statistics of the whole race, allowing after an analysis of the team's weaknesses and strengths.
- Python (3.12 >=)
- For install python3.12 on linux install pyenv !!! Remind to install the prerequisite for pyenv
- Linux or Windows
- Create a venv env with
python -m venv env
orpython3 -m venv env
. - Install the requirements with
pip install -r requirements.txt
Run in the same directory of main.py
python main.py -r
( -r for create a report)
To use the tool you need Python 3.12 (for a string interpolation problem if you change it you can also use it in 3.11 at your discretion)
In the file config.json there are 5 params to configure:
- Log level: The possible log levels are [Debug,Info,Warning,Error,Critical].
- Target: The target is the university you want to track, and it must match the name on the leaderboard (the name should actually be the one in the url when clicking to see the details of a team).
- Reload: How often is the leaderboard reloaded, I recommend using 120 because it is the seconds of a single tick
- Report: whether or not to save a statistical report in the A/D (this parameter can also be activated via line argument with the -r flag)