NewestFiles

This script shows the most recently modified files in the selected directory. This can be useful if your site has been hacked, and you want to find which files have been tampered with. (If your site has NOT been hacked, but you want to be told if/when it is, check out the FileWatch script!)

Bear in mind though that this shouldn't be 100% relied on to find all new/modified files, because it's possible for an exploit to set a file modified timestamp to anything. I recently discovered an exploit where a new php file was created, but it had a "modified" date of two years ago!

The NewestFiles script works by creating a list of all files it can find, then sorting them into date order. It may not be the most efficient way of doing this but for most people, with no more than a few thousand files this is not a problem.

You can specify which directory to start, how deep in the directory tree you want to check, and how many files to show (for example, the most recent 30 files). Results can be either displayed in your browser, or emailed to you.

twzNewestFiles
Version:

0.1

Licence:

GNU GPL

Requires:

PHP4+

Filename:

twzNewestFiles-v0.1.zip

File date: 

2010-05-15


Write a comment

  • Required fields are marked with *.