I have published on Github script to analyze the site files. Can be useful to find changed/hacked files if you are not allowed use any version control system.
Script will scan all files depend from the filter option and store result in to the files.map, that allow you compare the couple maps in future for find changed files. Aslo do sorting by path, filename, extension, size, last modification, last inode change, permissions, file state.
Download here filelist-php
So, how to use it:
- Put script in to the server
- Change the script options if need (e.g. current path, exclude filter, default map name)
- Run it! (open in the browser)
- As result you will get the full file list table and the file map
- Script will make the new map file after each click on Scan again, that allow you compare the couple maps in future
Warning! Do not leave this script and the .map files with free access on the server! Use .htaccess for access control.
Many thanks for this script! My site has been hacked and this helped me finding all the infected files.
One tip / minor feature request: a next and previous option. Now I have to remember on which page I am.
Great script, Thank you so much
Thank you for this script. I second the feature request for a next/previous button.
Another nice addition would be the possibility to show only the changes when comparing files.
I used it to clean up a hacked website. Very useful.
Sorry, my bad. I see you can sort on file state. Very handy!
yes, it disabled by default, because I think it can take a lot time on slow server
Excellent script.. Thanks a lot..
How can I make sure that people can not run the script by typing http://www.mysite.com/filelist.php?
Can you explain how is it possible to add more security to the script?
Thanks very much.
you can use .htaccess protection, or just do not leave the script on live, and upload only when it really need