Ensures files arent changed, and sends alerts via Twilio if any do.
You will need to have a Twilio account, with an SMS enabled phone number. Twilio will charge you per your contract for each sms message this tool sends.
To Install:
- Elevate yourself to root "sudo su"
- Ensure you have the python venv tools "apt install python3.10-venv" Use your python version.
- Go to your opt folder "cd /opt"
- Clone this repo to this location "git clone https://github.com/TheMorphium/File_integrity_checker.git"
- Move to new folder "cd File_integrity_checker"
- Create virtual enviornment "python -m venv env"
- Install libraries "pip install -r requirements.txt"
- Make a new .env file with the ENV_EXAMPLE text as a template. "nano .env"
- Paste contents of ENV_EXAMPLE, and modify for your needs
- Make a service to launch watchdog:
- Edit a new file "nano /etc/systemd/system py_watchdog.service"
- Paste below text
[Unit] Description=Python Watchdog After=multi-user.target
[Service] Type=simple Restart=always ExecStart=/opt/File_integrity_checker/integrity_check_tool.py WorkingDirectory=/opt/File_integrity_checker/ User = root
[Install] WantedBy=multi-user.target
- Press Ctrl-X to exit, and press y to save changes
- Reload the service daemon "systemctl daemon-reload"
- Enable service "systemctl enable py_watchdog"
- Start service "systemctl start py_watchdog"