In the last issue of the Joomla magazine i've read with more interest the article write your own app using Joomla Platform so i've started to learn the Joomla Platform by examples, and decided to developed a CLI application, Jchecksum can help on discover hack attempts on your site. This Joomla Plaftorm CLI application takes a fingerprint of your site helping you to detect changes dued to hacking attempts, it execute a checksum, using the md5 function, of your site folders checking for unwanted changes on your files. In addition to console log the application produce a log file. Run from the command line or terminal. All you need is PHP configured to run from the command line.

Settings:

Put The checksum folder in the cli folder if you don't have one create it on your joomlasite root, rename the file bootstrap.dist.php to bootstrap.php and change to suit your environment this is the correct situation

site folder tree

Run from the command line or terminal. All you need is PHP configured to run from the command line. The Jchecksum CLI application for Joomla Platform is available at git

How it works

run for first time  for take a fingerprints of your site on your terminal write:

php run.php --mode=first

the first run

When you want to check for changes on your terminal write:

php run.php --mode=check

run check

When you was sure that changes are legitimate make a new fingerprint on your terminal write:

php run.php --mode=upgrade

good catch download on github


Disclaimer

Alikonweb.it is not affiliated with or endorsed by the Joomla!®Project or Open Source Matters. The Joomla!® name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.