Chet Asborough
Chet Asborough

Reputation: 1

Is there a PHP script that will scan files on my server and tell me when/if one changes?

A few months ago I saw a PHP script built to detect malware injections in files. Basically the script watched for any files on the server to change or for their contents to change, and then emailed an admin if the contents changed. I haven't been able to locate a script that does this but I need one.

Does anyone know of a program like this?

Thanks!

Upvotes: 0

Views: 289

Answers (2)

Wolfgang
Wolfgang

Reputation: 11

Use an Intrusion Detection System like OSSEC

Upvotes: 1

Wrikken
Wrikken

Reputation: 70460

It's not a PHP script, but you're probably looking for something like the famd package. Possibly used with http://php.net/manual/en/book.fam.php, however, at http://www.php.net/manual/en/fam.installation.php it states:

This extension is considered unmaintained and dead.

... so I don't know what the current alternatives are.

Upvotes: 0

Related Questions