Results 1 to 3 of 3
Hi There,
Our server recently was hacked. The hacker added an iframe to every index.html file. We got the exploits removed, but the iframe code needs to be removed from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-27-2006 #1Just Joined!
- Join Date
- Sep 2006
- Posts
- 2
Find and Replace Recursively
Hi There,
Our server recently was hacked. The hacker added an iframe to every index.html file. We got the exploits removed, but the iframe code needs to be removed from every index.html file. Does anyone know how we can recursively find and replace the iframe code with nothing (deleting the code)?
Thanks,
Derek
- 09-28-2006 #2
rm -rf `find /path -name 'index.html'`
"Don't think about the work, think about the benefit"
Leonardo Juszkiewicz
- 09-28-2006 #3Just Joined!
- Join Date
- Sep 2006
- Posts
- 2
No, I don't want to delete the files, just replace the text in them so basically deleting this iframe code. I found a way here is what I did:
DerekCode:find /home/* -type f -exec sed -i 's/iframe code/ /' {} \;


Reply With Quote
