Skip to content

firewizard/theia-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Theia File Monitor

  • 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.

Installation

Just clone the repository and run the script

php theia-monitor.php --path /var/www/

Requirements

  • Write permissions on the folder where this scripts runs from

Usage

  • 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]"

Support

If you find any bugs, open an issue on GitHub.

Contribution

Any contribution is highly appreciated. Just open a pull request on GitHub with the new feature or fix.

Developer

Cristian Nicolescu http://mandagreen.com
@firewizard

License

MIT License (MIT)

About

A simple php script to monitor file changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages