You are on page 1of 1

How I used the Unix command line to do a multi-file search and replace to fix ov

er 4,700 individual files


Evil hackers attack!
Some customers of mine recently reported some suspicious behavior on one of thei
r sites. I discovered, with dismay, that a number of months ago there was a nast
y cPanel exploit that some evil hackers had used to insert a malicious line of c
ode into the bottom of every HTML page on this server. After verifying that the
cPanel installation had been fixed, I used grep to search through all the files
on the server to see if any other files had been touched by the hackers. I found
over 4,700 individual files that had malicious code added and knew that somethi
ng needed to be done immediately to address this problem.

You might also like