I think that you need to take a step back to see what the actual problem is. It could be one or more of the following, but it could of course be something else.
The file shell.php (and other files) exists.
Someone want to upload the file shell.php (or other files) to your server
Someone want to runs the file shell.php (or other files) on your server
Some people think it is fun to crack sites
You allow people to upload the file shell.php (or other files) to your server
You allow people to run the file shell.php (or other files) to your server
I would say that all of the above is a problem. Next step is to decide what you can't control and what you can do something about. The 4 first things above is not possible to do something about, but you can do something about the 2 last things.
Now the next thing is how you can solve the problem. The current "solution" is not a good one since it gives a cracker plenty of time to do what they want. When it comes to computers a second is an eternity, so is 1/100 of a second. Sure, some of the less advanced people will not be able to hack your site if you run the CRON once a second. But then it is not those people that you have to worry about, they are not advanced enough to have time to make much damage.
Instead you should try and stop the people that can do anything in a millisecond or less, and the only way is to stop them from either upload the file to your site or stop execution of the script.
rr1024 wrote:Hope you don't mind if I pop off one here but I am so freaking sick and tired of these FU*&#$&# Hackers uploading their shell.php file....I think the jerk who created that files needs to be hunted down, wild, wild west style!:mad: :mad: :mad: I think they should make it a federal offence with lifetime jail and NO CHANCE of getting out ever!
And I think it should be an offence to make code that is so sloppy that it allow these simple ways of hacking. No jail, but a ban from setting up scripts until the offender have learned to program with security first. Don't get me wrong, the problem is crackers. But it is people that don't defend against them that give programmers and PHP bad reputation.