- A simple php script to monitor when files are changed, erased or added.
- It uses a simple md5 sum to see if the content of the file has been changed.
- Does not check the timestamps (file last accessed, modified or created).
- Useful for keeping an eye on your files for code injection, or accidental overwrite.
Just clone the repository and run the script
php theia-monitor.php --path /var/www/
- Write permissions on the folder where this scripts runs from
- Show help screen with all commands
php theia-monitor.php --help
- Show monitored paths
php theia-monitor.php --show-paths
- Show files in path
php theia-monitor.php --show-files --path /my/path
- Monitor files and show the report on screen
php theia-monitor.php --path /my/path
- Monitor files, exlude images and log files (using regular expressions)
php theia-monitor.php --path /my/path --exclude "(.+\.log)|(access|error)_log|(.+\.(jpe?g|png|gif))"
- Monitor files and send the report on email
php theia-monitor.php --path /my/path --email [email protected] --subject "Non-default subject" --from [email protected] --cc "[email protected],[email protected]"
If you find any bugs, open an issue on GitHub.
Any contribution is highly appreciated. Just open a pull request on GitHub with the new feature or fix.
Cristian Nicolescu
http://mandagreen.com
@firewizard