Welcome to WebmasterWorld Guest from 107.20.54.98

Forum Moderators: phranque

Message Too Old, No Replies

Search and Replace tool for folder and subfolder files needed

     
8:19 pm on Oct 25, 2009 (gmt 0)

New User

5+ Year Member

joined:Feb 20, 2006
posts:31
votes: 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?

11:29 pm on Oct 25, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 12, 2006
posts:1304
votes: 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.

9:36 am on Oct 27, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


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.