Possible Duplicate:
My server's been hacked EMERGENCY
My user account on a shared hosting server got hacked and overwrote every PHP with this at the bottom....
eval(gzuncompress(base64_decode( etc etc
Luckily I think I know the script that was vulnerable and I have a backup that is free from all bad files. So, I want to rsync it and replace the bad stuff, will this work?
rsync -rltpqz --delete username@remotehost.com:dir /users/home/username/
Will "-rltpqz --delete" delete all the local files and replace them with remote versions?
Are there any other steps to follow?
rsyncpart of the question could have been answered, but we wouldn't have done @firefusion any favours if we ignore the compromise part of the question. I was hoping the @firefusion might have responded to my comment with "it's the logon to a shared hosting server", in which case we could give some appropriate advice. Closing the question maybe was harsh, but adding more detail (or putting less detail) might just have saved it. – Bryan Nov 17 '11 at 12:46