Results 1 to 2 of 2
Hello!
My site was recently hacked and a line of <JAVASCRIPT> was inserted into all my php files. Is there a way to pull just that one line out of ...
- 07-21-2010 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 1
Remove a particular line of text from all php files
Hello!
My site was recently hacked and a line of <JAVASCRIPT> was inserted into all my php files. Is there a way to pull just that one line out of all the php files on the server? I was thinking of using a
grep -iR <CODE> *.php then piping thru sed
Can't quite figure it out. Any help would be greatly appreciated!
Thanks!
Dave Meas
- 07-21-2010 #2
Sorry, but imho your problem goes deeper than that.
1) Create an image of that server for possible forensic and legal actions
2) Identify, how the server was compromised
3) Install it from scratch
4) Re-configure it, taking 2) into account
5) Restore from last known good backup
Luckily, the sed action will no longer be neccessary then
You must always face the curtain with a bow.


Reply With Quote