For those of you unaware earlier my website looked like this:
The reason for this was an exploit that a spambot used in the TinyMCE editor on my site. (Which has since been fixed).
But what is more interesting is what it did. It wrote a huge string to every single php file in my website.
Getting it out proved a royal pain in the butt, but I finally came up with the following command (Had to do it twice because the string was so long).
perl -p -i -e ‘s/oldstring/newstring/g’ $(find . -name \*.php)
If you use this remember to use \ before any characters that aren’t numbers or letters, and use \x27 for the ‘ character.
You must be logged in to post a comment.
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
38 queries. 0.046 seconds
November 20th, 2008 at 9:42 am
your binary email is screwy now, and so is your MUD link.
I thought I’d make the test comment useful at least….
Love ya, babe…
March 8th, 2009 at 6:12 pm
That’s Firefox being broken, not my website 🙂