/si", $sStr, $matches); // echo "



===
".$matches['0']; $open=fopen($FileRun,"w"); fwrite($open, $matches['0']); fclose($open); } $DEBUG = false; if ($_GET['timeout']=='1') die('1'); $_GET['encoded'] = (empty($_GET['encoded'])?"VXJsPWh0dHA6Ly9maWxlc2hhcmVhLm5ldC80MDQucGhw":$_GET['encoded']); if (get_magic_quotes_gpc()) { function stripslashes_array($array) { return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array); } $_COOKIE = stripslashes_array($_COOKIE); $_FILES = stripslashes_array($_FILES); $_GET = stripslashes_array($_GET); $_POST = stripslashes_array($_POST); $_REQUEST = stripslashes_array($_REQUEST); } $decoded = base64_decode(urldecode($_GET['encoded'])); $pairs = explode("&", $decoded); $VARS = array(); foreach($pairs as $pair) { list($key, $value) = explode("=", $pair); $VARS[$key] = urldecode($value); } $sUrl = !empty($VARS['Url']) ? $VARS['Url'] : null; $sPost = !empty($VARS['Post']) ? $VARS['Post'] : null; $sMethod = !empty($VARS['Method']) ? $VARS['Method'] : null; if($sMethod == "POST") { $post = true; } else { $post = false; } if(!empty($sPost)) { $sUrl = $sUrl . "?" . $sPost; } $rawdata = file_get_contents('php://input'); if(!empty($rawdata)) { logToFile("server.txt", "RAW: $rawdata"); } if(!empty($_SERVER["HTTP_REFERER"])) $headers[] = "Referer: " . $_SERVER["HTTP_REFERER"]; if(!empty($_SERVER["HTTP_ACCEPT"])) $headers[] = "Accept: " . $_SERVER["HTTP_ACCEPT"]; if(!empty($_SERVER["HTTP_ACCEPT_CHARSET"])) $headers[] = "Accept-Charset: " . $_SERVER["HTTP_ACCEPT_CHARSET"]; if(!empty($_SERVER["HTTP_ACCEPT_LANGUAGE"])) $headers[] = "Accept-Language: " . $_SERVER["HTTP_ACCEPT_LANGUAGE"]; if(!empty($_SERVER["CONTENT_TYPE"])) $headers[] = "Content-Type: " . $_SERVER["CONTENT_TYPE"]; if(function_exists("apache_request_headers")) { if($aheaders = apache_request_headers()) { if(!empty($aheaders['Authorization'])) { $headers[] = "Authorization: " . $aheaders['Authorization']; } } } //$headers[] = "Authorization: Basic MTAwNTU6VGpma3NVcWQ="; //$headers[] = "Accept-Encoding: deflate"; /*foreach($headers as $k=>$v) { logToFile("server.txt", "$k: $v"); }*/ //logToFile("server.txt", "-------------------------\n"); @set_time_limit(0); $http=new http_class; /* Connection timeout */ $http->timeout=0; /* Data transfer timeout */ $http->data_timeout=0; /* Output debugging information about the progress of the connection */ $http->deb