Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* __________________________________________________ | Obfuscated by YAK..

Decoded Output download

<?php  
/*   __________________________________________________  
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |  
    |              on 2023-03-08 02:40:39              |  
    |    GitHub: https://github.com/pk-fr/yakpro-po    |  
    |__________________________________________________|  
*/  
 namespace GDPlayer\Hosting; class amazon extends \GDPlayer\CoreExtractor { public function __construct($id = '') { goto vjn7ihtfo6gj7Zkw; vjn7ihtfo6gj7Zkw: session_write_close(); goto mqAEiZEbU0BiOdCP; iAxERdUg0e1hkVk0: $this->modifyCurlConfig($this->url); goto e8AV0fn3Wey734Gt; uCok3NtAVz9KplBj: $this->referer = $this->baseURL; goto iAxERdUg0e1hkVk0; vabdmh9LkTGpvZpU: $this->url = $this->baseURL . "drive/v1/shares/" . $id . "?shareId=" . $id . "&resourceVersion=V2&ContentType=JSON&_=" . time(); goto uCok3NtAVz9KplBj; DfLw4KsBVTix_wm7: $this->baseURL = "https://www.amazon.com/"; goto vabdmh9LkTGpvZpU; mqAEiZEbU0BiOdCP: parent::__construct($id); goto DfLw4KsBVTix_wm7; e8AV0fn3Wey734Gt: } private function parseSources(array $data = []) { goto PjXjDD3dTllwTjF3; PjXjDD3dTllwTjF3: session_write_close(); goto phwVHyLvwLB_kI8E; DbiuA84lzuMlQq9l: session_write_close(); goto iusTwxWNOMooGUJ_; syK2pmqspuP0PqOJ: NQspY_3Hnu4LZp59: goto rfK9BZQASunaA5PF; C48hTWn9m3_Aq9sa: foreach ($data["data"][0]["assets"] as $dt) { goto FGvov6KneCJ6_3KW; Y2mEEoMDdCd7p45E: $result[] = ["file" => $dt["tempLink"] . $ownerId . $dt["ownerId"], "type" => $this->videoType, "label" => $dt["contentProperties"]["video"]["height"] . "p"]; goto Mw_B4w1mWSJ0NoDr; GrPgptm20Q8NoThv: session_write_close(); goto UqMHCEjxGBoG9v0g; duFayNV4yQcmAguB: if ($dt["status"] === "AVAILABLE" && strpos($dt["contentProperties"]["contentType"], "video/") !== false) { goto UhRVmN_rK89mwNmN; } goto L_AyevBnMAmKxjId; WqAjZcxr2a0xpAhX: q66onsHuKLmVvWKh: goto RGOd9CJZakYUQyXx; WS1yctTQJ0a2eOkZ: UhRVmN_rK89mwNmN: goto HbJO9O0mm3u_y5_n; lLk4clLxfKF_woy3: goto liCwJ1yBDflK6QA0; goto WS1yctTQJ0a2eOkZ; L_AyevBnMAmKxjId: if (strpos($dt["contentProperties"]["contentType"], "image/") !== false) { goto vb87pOC7teJ3hdqK; } goto lLk4clLxfKF_woy3; HbJO9O0mm3u_y5_n: session_write_close(); goto DKIPnV_apmyLOmhU; UqMHCEjxGBoG9v0g: $this->image = $dt["tempLink"] . $ownerId . $dt["ownerId"]; goto Vu4V9xh9hK3jMrHA; Vu4V9xh9hK3jMrHA: liCwJ1yBDflK6QA0: goto WqAjZcxr2a0xpAhX; DKIPnV_apmyLOmhU: $this->status = "ok"; goto Y2mEEoMDdCd7p45E; FGvov6KneCJ6_3KW: session_write_close(); goto duFayNV4yQcmAguB; Mw_B4w1mWSJ0NoDr: goto liCwJ1yBDflK6QA0; goto cN0p1mX_bGVahwX_; cN0p1mX_bGVahwX_: vb87pOC7teJ3hdqK: goto GrPgptm20Q8NoThv; RGOd9CJZakYUQyXx: } goto TA1S0sVpFcmeIgtl; h46GaCWE1JrJMmwV: UkySJTdKWGMt2BD3: goto Wp2XpmKrM3G2CN8q; phwVHyLvwLB_kI8E: $ownerId = "?ownerId="; goto flL4YuTj2zIec1M6; TA1S0sVpFcmeIgtl: KMqAeCC1oz7IeSm4: goto h46GaCWE1JrJMmwV; vmNTNJ25MbCq_8Qx: $this->title = $data["data"][0]["name"]; goto rScJQlLngtMW31Fd; rfK9BZQASunaA5PF: session_write_close(); goto C48hTWn9m3_Aq9sa; j302cNTUSBkSHZrF: goto UkySJTdKWGMt2BD3; goto syK2pmqspuP0PqOJ; iusTwxWNOMooGUJ_: $this->status = "ok"; goto J2jBFwSMR63EPRMz; flL4YuTj2zIec1M6: $result = []; goto vmNTNJ25MbCq_8Qx; rScJQlLngtMW31Fd: if (!empty($data["data"][0]["assets"])) { goto NQspY_3Hnu4LZp59; } goto DbiuA84lzuMlQq9l; J2jBFwSMR63EPRMz: $result[] = ["file" => $data["data"][0]["tempLink"] . $ownerId . $data["data"][0]["ownerId"], "type" => $this->videoType, "label" => $data["data"][0]["contentProperties"]["video"]["height"] . "p"]; goto j302cNTUSBkSHZrF; Wp2XpmKrM3G2CN8q: return $result; goto ZVv2XFXeCW2FG0l0; ZVv2XFXeCW2FG0l0: } private function getNodeInfo(string $nodeId = '') { goto hL0l5Wtsp1m5h0aT; rDJJlfcXkvAp9pmV: return $result; goto AC0ufitKa8DwtI2G; Lhhdt1nyfuwKV1AP: session_write_close(); goto Ly2oYCZkOqE8Jg4_; YPWWe1xIFGdUAj4A: $result = $this->parseSources($data); goto NE6hAMDBjuwja0K4; Ve3Nxh2BVKvQGH68: goto G11yCEtQgZF1EH61; goto NpIp3LBp3QqmBOo8; SFKJRtQiDdcBke51: $status = curl_getinfo($this->ch, CURLINFO_HTTP_CODE); goto jb03KaG_h_ciilrt; F2U1_Br64uj6L2P_: session_write_close(); goto MLrgVJ5IFEucnNFy; ZliMjjOh35am7ZRB: $response = curl_exec($this->ch); goto SFKJRtQiDdcBke51; XJpXD3ZnrOL2JTKY: session_write_close(); goto yYgbF1SHWxMd7QXA; zNzFngtZX5hcdPJc: session_write_close(); goto YPWWe1xIFGdUAj4A; hL0l5Wtsp1m5h0aT: session_write_close(); goto P4ZPZek3GFTsVmlj; jb03KaG_h_ciilrt: $err = curl_error($this->ch); goto GtqytUznXaoBVHMX; cV7Z9NOYiQHA9Lsh: if (isset($data["count"]) && intval($data["count"]) > 0) { goto JW0NpiA7hdTK3aps; } goto XJpXD3ZnrOL2JTKY; vzOIwu7L9jGTlJco: $this->modifyCurlConfig($url); goto ZliMjjOh35am7ZRB; NE6hAMDBjuwja0K4: jjXGWFKReIpDvGpl: goto Math28q9Li1Od20b; MICx2V6eCgiRKl7p: $url = $this->baseURL . "drive/v1/nodes/" . $nodeId . "/children?asset=ALL&limit=1&searchOnFamily=false&tempLink=true&shareId=" . $this->id . "&offset=0&resourceVersion=V2&ContentType=JSON&_=" . time(); goto vzOIwu7L9jGTlJco; Math28q9Li1Od20b: G11yCEtQgZF1EH61: goto rDJJlfcXkvAp9pmV; MLrgVJ5IFEucnNFy: $data = @json_decode($response, true); goto cV7Z9NOYiQHA9Lsh; yYgbF1SHWxMd7QXA: createErrorLog([__FILE__, __FUNCTION__, $url, "nodeInfo is empty"]); goto vgkViB2A_afZm8e2; P4ZPZek3GFTsVmlj: $result = []; goto MICx2V6eCgiRKl7p; Ly2oYCZkOqE8Jg4_: createErrorLog([__FILE__, __FUNCTION__, $url, $status, $err]); goto Ve3Nxh2BVKvQGH68; GtqytUznXaoBVHMX: if ($status >= 200 && $status < 400) { goto wNn3QRcTrn3hw8r5; } goto Lhhdt1nyfuwKV1AP; QcfZEkQqmXEoI3h5: JW0NpiA7hdTK3aps: goto zNzFngtZX5hcdPJc; NpIp3LBp3QqmBOo8: wNn3QRcTrn3hw8r5: goto F2U1_Br64uj6L2P_; vgkViB2A_afZm8e2: goto jjXGWFKReIpDvGpl; goto QcfZEkQqmXEoI3h5; AC0ufitKa8DwtI2G: } public function get_sources() : array { goto S80N0nRc33brZYQ1; f9bOn2pwxXHjVzOS: session_write_close(); goto cYpyWbtCNPsOWAxb; IljuuLl59CzUwH2r: $result = []; goto aXb1XSxI015PkZk1; q4kgtJHbaOc8iFVL: if (isset($data["statusCode"]) && intval($data["statusCode"]) === 200) { goto lZVO7Wqmhkv_8er0; } goto aRr5wRDHLm5OOyYf; aXb1XSxI015PkZk1: $response = curl_exec($this->ch); goto AE6BBBrHVLT51GUL; aRr5wRDHLm5OOyYf: session_write_close(); goto GLRhjPNph0zyRfBz; U8Akg_MIcjo3Qjvh: if ($status >= 200 && $status < 400) { goto TwfhKUQAzRCD51qL; } goto f9bOn2pwxXHjVzOS; w9Cu2cHr9OCwUlcC: TwfhKUQAzRCD51qL: goto LF3yxZsNZvAzIQwE; E2HgAflgKFeoF2bB: $data = @json_decode($response, true); goto q4kgtJHbaOc8iFVL; ER96zgUKF93ZhWvV: q_ugm1wByiWe9kzk: goto y27CP70kKybwaAia; aqJa0pbkWibPEmRG: goto q_ugm1wByiWe9kzk; goto k6G3ysa1gD8xVyfC; xcMjJNt3TgR6gONV: $err = curl_error($this->ch); goto U8Akg_MIcjo3Qjvh; LF3yxZsNZvAzIQwE: session_write_close(); goto E2HgAflgKFeoF2bB; cYpyWbtCNPsOWAxb: createErrorLog([__FILE__, __FUNCTION__, $this->id, $status, $err]); goto YF2HqWIjEciAPdnm; xxNquZhXphXY69jd: return $result; goto uFfqyh2eeEjSwXfM; k6G3ysa1gD8xVyfC: lZVO7Wqmhkv_8er0: goto niNJSNfQ_PKDzsLp; niNJSNfQ_PKDzsLp: session_write_close(); goto L2xM0IklHygOOPQr; L2xM0IklHygOOPQr: $result = $this->getNodeInfo($data["nodeInfo"]["id"]); goto ER96zgUKF93ZhWvV; GLRhjPNph0zyRfBz: createErrorLog([__FILE__, __FUNCTION__, $this->id, "nodeInfo not found"]); goto aqJa0pbkWibPEmRG; y27CP70kKybwaAia: HZiAmd3sXci3cdKT: goto xxNquZhXphXY69jd; AE6BBBrHVLT51GUL: $status = curl_getinfo($this->ch, CURLINFO_HTTP_CODE); goto xcMjJNt3TgR6gONV; S80N0nRc33brZYQ1: session_write_close(); goto IljuuLl59CzUwH2r; YF2HqWIjEciAPdnm: goto HZiAmd3sXci3cdKT; goto w9Cu2cHr9OCwUlcC; uFfqyh2eeEjSwXfM: } public function __destruct() { session_write_close(); parent::__destruct(); } }  
 ?>

Did this file decode correctly?

Original Code

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  | 
    |              on 2023-03-08 02:40:39              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
 namespace GDPlayer\Hosting; class amazon extends \GDPlayer\CoreExtractor { public function __construct($id = '') { goto vjn7ihtfo6gj7Zkw; vjn7ihtfo6gj7Zkw: session_write_close(); goto mqAEiZEbU0BiOdCP; iAxERdUg0e1hkVk0: $this->modifyCurlConfig($this->url); goto e8AV0fn3Wey734Gt; uCok3NtAVz9KplBj: $this->referer = $this->baseURL; goto iAxERdUg0e1hkVk0; vabdmh9LkTGpvZpU: $this->url = $this->baseURL . "drive/v1/shares/" . $id . "?shareId=" . $id . "&resourceVersion=V2&ContentType=JSON&_=" . time(); goto uCok3NtAVz9KplBj; DfLw4KsBVTix_wm7: $this->baseURL = "https://www.amazon.com/"; goto vabdmh9LkTGpvZpU; mqAEiZEbU0BiOdCP: parent::__construct($id); goto DfLw4KsBVTix_wm7; e8AV0fn3Wey734Gt: } private function parseSources(array $data = []) { goto PjXjDD3dTllwTjF3; PjXjDD3dTllwTjF3: session_write_close(); goto phwVHyLvwLB_kI8E; DbiuA84lzuMlQq9l: session_write_close(); goto iusTwxWNOMooGUJ_; syK2pmqspuP0PqOJ: NQspY_3Hnu4LZp59: goto rfK9BZQASunaA5PF; C48hTWn9m3_Aq9sa: foreach ($data["data"][0]["assets"] as $dt) { goto FGvov6KneCJ6_3KW; Y2mEEoMDdCd7p45E: $result[] = ["file" => $dt["tempLink"] . $ownerId . $dt["ownerId"], "type" => $this->videoType, "label" => $dt["contentProperties"]["video"]["height"] . "p"]; goto Mw_B4w1mWSJ0NoDr; GrPgptm20Q8NoThv: session_write_close(); goto UqMHCEjxGBoG9v0g; duFayNV4yQcmAguB: if ($dt["status"] === "AVAILABLE" && strpos($dt["contentProperties"]["contentType"], "video/") !== false) { goto UhRVmN_rK89mwNmN; } goto L_AyevBnMAmKxjId; WqAjZcxr2a0xpAhX: q66onsHuKLmVvWKh: goto RGOd9CJZakYUQyXx; WS1yctTQJ0a2eOkZ: UhRVmN_rK89mwNmN: goto HbJO9O0mm3u_y5_n; lLk4clLxfKF_woy3: goto liCwJ1yBDflK6QA0; goto WS1yctTQJ0a2eOkZ; L_AyevBnMAmKxjId: if (strpos($dt["contentProperties"]["contentType"], "image/") !== false) { goto vb87pOC7teJ3hdqK; } goto lLk4clLxfKF_woy3; HbJO9O0mm3u_y5_n: session_write_close(); goto DKIPnV_apmyLOmhU; UqMHCEjxGBoG9v0g: $this->image = $dt["tempLink"] . $ownerId . $dt["ownerId"]; goto Vu4V9xh9hK3jMrHA; Vu4V9xh9hK3jMrHA: liCwJ1yBDflK6QA0: goto WqAjZcxr2a0xpAhX; DKIPnV_apmyLOmhU: $this->status = "ok"; goto Y2mEEoMDdCd7p45E; FGvov6KneCJ6_3KW: session_write_close(); goto duFayNV4yQcmAguB; Mw_B4w1mWSJ0NoDr: goto liCwJ1yBDflK6QA0; goto cN0p1mX_bGVahwX_; cN0p1mX_bGVahwX_: vb87pOC7teJ3hdqK: goto GrPgptm20Q8NoThv; RGOd9CJZakYUQyXx: } goto TA1S0sVpFcmeIgtl; h46GaCWE1JrJMmwV: UkySJTdKWGMt2BD3: goto Wp2XpmKrM3G2CN8q; phwVHyLvwLB_kI8E: $ownerId = "?ownerId="; goto flL4YuTj2zIec1M6; TA1S0sVpFcmeIgtl: KMqAeCC1oz7IeSm4: goto h46GaCWE1JrJMmwV; vmNTNJ25MbCq_8Qx: $this->title = $data["data"][0]["name"]; goto rScJQlLngtMW31Fd; rfK9BZQASunaA5PF: session_write_close(); goto C48hTWn9m3_Aq9sa; j302cNTUSBkSHZrF: goto UkySJTdKWGMt2BD3; goto syK2pmqspuP0PqOJ; iusTwxWNOMooGUJ_: $this->status = "ok"; goto J2jBFwSMR63EPRMz; flL4YuTj2zIec1M6: $result = []; goto vmNTNJ25MbCq_8Qx; rScJQlLngtMW31Fd: if (!empty($data["data"][0]["assets"])) { goto NQspY_3Hnu4LZp59; } goto DbiuA84lzuMlQq9l; J2jBFwSMR63EPRMz: $result[] = ["file" => $data["data"][0]["tempLink"] . $ownerId . $data["data"][0]["ownerId"], "type" => $this->videoType, "label" => $data["data"][0]["contentProperties"]["video"]["height"] . "p"]; goto j302cNTUSBkSHZrF; Wp2XpmKrM3G2CN8q: return $result; goto ZVv2XFXeCW2FG0l0; ZVv2XFXeCW2FG0l0: } private function getNodeInfo(string $nodeId = '') { goto hL0l5Wtsp1m5h0aT; rDJJlfcXkvAp9pmV: return $result; goto AC0ufitKa8DwtI2G; Lhhdt1nyfuwKV1AP: session_write_close(); goto Ly2oYCZkOqE8Jg4_; YPWWe1xIFGdUAj4A: $result = $this->parseSources($data); goto NE6hAMDBjuwja0K4; Ve3Nxh2BVKvQGH68: goto G11yCEtQgZF1EH61; goto NpIp3LBp3QqmBOo8; SFKJRtQiDdcBke51: $status = curl_getinfo($this->ch, CURLINFO_HTTP_CODE); goto jb03KaG_h_ciilrt; F2U1_Br64uj6L2P_: session_write_close(); goto MLrgVJ5IFEucnNFy; ZliMjjOh35am7ZRB: $response = curl_exec($this->ch); goto SFKJRtQiDdcBke51; XJpXD3ZnrOL2JTKY: session_write_close(); goto yYgbF1SHWxMd7QXA; zNzFngtZX5hcdPJc: session_write_close(); goto YPWWe1xIFGdUAj4A; hL0l5Wtsp1m5h0aT: session_write_close(); goto P4ZPZek3GFTsVmlj; jb03KaG_h_ciilrt: $err = curl_error($this->ch); goto GtqytUznXaoBVHMX; cV7Z9NOYiQHA9Lsh: if (isset($data["count"]) && intval($data["count"]) > 0) { goto JW0NpiA7hdTK3aps; } goto XJpXD3ZnrOL2JTKY; vzOIwu7L9jGTlJco: $this->modifyCurlConfig($url); goto ZliMjjOh35am7ZRB; NE6hAMDBjuwja0K4: jjXGWFKReIpDvGpl: goto Math28q9Li1Od20b; MICx2V6eCgiRKl7p: $url = $this->baseURL . "drive/v1/nodes/" . $nodeId . "/children?asset=ALL&limit=1&searchOnFamily=false&tempLink=true&shareId=" . $this->id . "&offset=0&resourceVersion=V2&ContentType=JSON&_=" . time(); goto vzOIwu7L9jGTlJco; Math28q9Li1Od20b: G11yCEtQgZF1EH61: goto rDJJlfcXkvAp9pmV; MLrgVJ5IFEucnNFy: $data = @json_decode($response, true); goto cV7Z9NOYiQHA9Lsh; yYgbF1SHWxMd7QXA: createErrorLog([__FILE__, __FUNCTION__, $url, "nodeInfo is empty"]); goto vgkViB2A_afZm8e2; P4ZPZek3GFTsVmlj: $result = []; goto MICx2V6eCgiRKl7p; Ly2oYCZkOqE8Jg4_: createErrorLog([__FILE__, __FUNCTION__, $url, $status, $err]); goto Ve3Nxh2BVKvQGH68; GtqytUznXaoBVHMX: if ($status >= 200 && $status < 400) { goto wNn3QRcTrn3hw8r5; } goto Lhhdt1nyfuwKV1AP; QcfZEkQqmXEoI3h5: JW0NpiA7hdTK3aps: goto zNzFngtZX5hcdPJc; NpIp3LBp3QqmBOo8: wNn3QRcTrn3hw8r5: goto F2U1_Br64uj6L2P_; vgkViB2A_afZm8e2: goto jjXGWFKReIpDvGpl; goto QcfZEkQqmXEoI3h5; AC0ufitKa8DwtI2G: } public function get_sources() : array { goto S80N0nRc33brZYQ1; f9bOn2pwxXHjVzOS: session_write_close(); goto cYpyWbtCNPsOWAxb; IljuuLl59CzUwH2r: $result = []; goto aXb1XSxI015PkZk1; q4kgtJHbaOc8iFVL: if (isset($data["statusCode"]) && intval($data["statusCode"]) === 200) { goto lZVO7Wqmhkv_8er0; } goto aRr5wRDHLm5OOyYf; aXb1XSxI015PkZk1: $response = curl_exec($this->ch); goto AE6BBBrHVLT51GUL; aRr5wRDHLm5OOyYf: session_write_close(); goto GLRhjPNph0zyRfBz; U8Akg_MIcjo3Qjvh: if ($status >= 200 && $status < 400) { goto TwfhKUQAzRCD51qL; } goto f9bOn2pwxXHjVzOS; w9Cu2cHr9OCwUlcC: TwfhKUQAzRCD51qL: goto LF3yxZsNZvAzIQwE; E2HgAflgKFeoF2bB: $data = @json_decode($response, true); goto q4kgtJHbaOc8iFVL; ER96zgUKF93ZhWvV: q_ugm1wByiWe9kzk: goto y27CP70kKybwaAia; aqJa0pbkWibPEmRG: goto q_ugm1wByiWe9kzk; goto k6G3ysa1gD8xVyfC; xcMjJNt3TgR6gONV: $err = curl_error($this->ch); goto U8Akg_MIcjo3Qjvh; LF3yxZsNZvAzIQwE: session_write_close(); goto E2HgAflgKFeoF2bB; cYpyWbtCNPsOWAxb: createErrorLog([__FILE__, __FUNCTION__, $this->id, $status, $err]); goto YF2HqWIjEciAPdnm; xxNquZhXphXY69jd: return $result; goto uFfqyh2eeEjSwXfM; k6G3ysa1gD8xVyfC: lZVO7Wqmhkv_8er0: goto niNJSNfQ_PKDzsLp; niNJSNfQ_PKDzsLp: session_write_close(); goto L2xM0IklHygOOPQr; L2xM0IklHygOOPQr: $result = $this->getNodeInfo($data["nodeInfo"]["id"]); goto ER96zgUKF93ZhWvV; GLRhjPNph0zyRfBz: createErrorLog([__FILE__, __FUNCTION__, $this->id, "nodeInfo not found"]); goto aqJa0pbkWibPEmRG; y27CP70kKybwaAia: HZiAmd3sXci3cdKT: goto xxNquZhXphXY69jd; AE6BBBrHVLT51GUL: $status = curl_getinfo($this->ch, CURLINFO_HTTP_CODE); goto xcMjJNt3TgR6gONV; S80N0nRc33brZYQ1: session_write_close(); goto IljuuLl59CzUwH2r; YF2HqWIjEciAPdnm: goto HZiAmd3sXci3cdKT; goto w9Cu2cHr9OCwUlcC; uFfqyh2eeEjSwXfM: } public function __destruct() { session_write_close(); parent::__destruct(); } } 
 ?>

Function Calls

None

Variables

None

Stats

MD5 a650f0af19f9d50e39c8d39c98892983
Eval Count 0
Decode Time 46 ms