homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

Search and Replace tool for folder and subfolder files needed

5+ Year Member

Msg#: 4013132 posted 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?



WebmasterWorld Senior Member 5+ Year Member

Msg#: 4013132 posted 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.


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

Msg#: 4013132 posted 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved