Somehow, one of our sites continues to be compromised. Is there a way that I can log every command that PHP runs, either via system(), exec(), etc?
You can use override-function, and rename_function rewrite the system and exec commands, do a stack trace from there and log it to a file.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
5 years ago