a website of mine is hacked. In every php file a line of code is added. I wont post the complete code here, but it starts with:
This should work.
find . -name "*.php" -print0 | xargs -0 sed -ri '1s/^<\?php if\(!isset\(\$GLOBALS\[.*-1; \?>//' *.php