Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: bakedjake
Today I found one of my sites hacked - someone managed to upload some file 'c99shell' to a directory - I have no idea how.
I managed to restored the hacked page - but I have many sites hosted on the server and I'm worried thay have planted more of these scripts.
I would be grateful if anyone can tell me how to do a search to find any files modified/created today - is there a command I can run (Im using Linux fedora)?
Would also be interested to find out how to prevent this from happening again.
Any help would be great.
you may have more serious problems but I am sure you know that
I would guess an upload script somewhere of being the exploited culprit
I am sure someone can offer a grep that would work to find files created today
However, its unlikely that all of the changed files in an exploit will be found so easily. You face having find out how you were hacked (so it won't happen again), scrubbing your machine and re-installing. Hope you have clean backups of your data (if any).
The only sure way to recover from a hack as you describe is to wipe the machine and reinstall the OS, then reinstall your user files from a known-clean backup, from prior to the break-in.
Once you do the OS reinstall, be sure to (a) "harden" the system with a tool like Bastille or similar, (b) install a few IDS (Intrusion Detection System) programs to continually monitor your system for attack attempts and (c) instigate a full backup procedure that dumps the data to a secondary drive that is not normally accessible (i.e. mount it, do the backup, unmount it).
It's a pain, that's for sure.