Question

One of my websites has been hit with a malware attack. I downloaded the entire server to my computer and need to find all the files that have a specific string in them, remove that string, and save the files again. This code has successfully located all the files with the string, but I can't get any further.

FINDSTR /s /i /m base64 *.* 

Although the full string I need to remove is much longer. Thanks in advance.

Was it helpful?

Solution

Are you planning your site to be hit with the same issue again?

Otherwise just use any text editor that supports "find and replace in files" (our Visual Studio supports it for all editions including Express) and perform it once. Use regular expression to find whole string somthing like "base64[^;]+".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top