Search and Replace tool for folder and subfolder files needed
ImperialCommand
8:19 pm on Oct 25, 2009 (gmt 0)
Somehow all the files in my website have a script line added to them from a hack. So I need to remove that one script line from each and every file in each and every folder.
Currently, I don't have a search and replace tool that will go through all the files in every folder to remove that one script line. Is there a tool out there that you can recommend?
celgins
11:29 pm on Oct 25, 2009 (gmt 0)
If the files on your web host have been hacked, you still have the originals on your local machine, right?
I'll send you a sticky with a recommendation for a replace tool. However, an easier fix might be re-uploading all of your files--overwriting the hacked ones.
phranque
9:36 am on Oct 27, 2009 (gmt 0)
there is probably an existing vulnerability that must be repaired to prevent this from reoccurring.
on what platform are you making these edits? you could use the "sed" stream editor if it is *nix.