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-01-07 09:41:36              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
namespace GDPlayer\Hosting; 
 
class filemoon extends \GDPlayer\CoreAbstract 
{ 
    public function __construct($id = '') 
    { 
        session_write_close(); 
        parent::__construct($id); 
        $this->baseURL = "https://filemoon.sx/"; 
        $this->url = $this->baseURL . "e/" . $id; 
        $this->referer = $this->baseURL; 
        $this->modifyCurlConfig($this->url); 
    } 
    private function findTitle() 
    { 
        session_write_close(); 
        $this->modifyCurlConfig(strtr($this->url, ["/e/" => "/d/"])); 
        $response = curl_exec($this->ch); 
        $status = curl_getinfo($this->ch, CURLINFO_HTTP_CODE); 
        $err = curl_error($this->ch); 
        if ($status >= 200 && $status < 400) { 
            session_write_close(); 
            $dom = $this->domParser::str_get_html($response); 
            if ($dom) { 
                session_write_close(); 
                $title = $dom->find("title", 0); 
                if (!empty($title)) { 
                    session_write_close(); 
                    $this->title = trim(strtr($title->plaintext, ["Watching" => '', "Watch" => '', "Download" => '', "Video" => '']), " -"); 
                    goto tu6EvzpQDHL8_Hh; 
                } 
                session_write_close(); 
                createErrorLog(["/var/www/html/input.php", "findTitle", $this->id, "title element not found"]); 
                tu6EvzpQDHL8_Hh: 
                goto r2eCftFd5VCiSRw; 
            } 
            session_write_close(); 
            createErrorLog(["/var/www/html/input.php", "findTitle", $this->id, "cannot parse the html"]); 
            r2eCftFd5VCiSRw: 
            goto l10jsYY3Kx2NUrE; 
        } 
        session_write_close(); 
        createErrorLog(["/var/www/html/input.php", "findTitle", $this->id, $status, $err]); 
        l10jsYY3Kx2NUrE: 
    } 
    private function parseSources(array $data = []) 
    { 
        session_write_close(); 
        $result = ''; 
        if (empty($data)) { 
            goto tQU6bP7zVvHl4N0; 
        } 
        session_write_close(); 
        $this->modifyCurlConfig("https://filemoon.sx/dl"); 
        curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "POST"); 
        curl_setopt($this->ch, CURLOPT_POSTFIELDS, http_build_query($data)); 
        $response = curl_exec($this->ch); 
        $status = curl_getinfo($this->ch, CURLINFO_HTTP_CODE); 
        $err = curl_error($this->ch); 
        if ($status >= 200 && $status < 400) { 
            session_write_close(); 
            $data = @json_decode($response, true); 
            if (JSON_ERROR_NONE === json_last_error() && !empty($data)) { 
                session_write_close(); 
                $result = strtr($data[0]["file"], ["0" => "5", "1" => "6", "2" => "7", "5" => "0", "6" => "1", "7" => "2"]); 
                goto K73nTgywqKx0cwC; 
            } 
            session_write_close(); 
            createErrorLog(["/var/www/html/input.php", "parseSources", $this->id, "sources not found"]); 
            K73nTgywqKx0cwC: 
            goto K8IOkplZTmSnXty; 
        } 
        session_write_close(); 
        createErrorLog(["/var/www/html/input.php", "parseSources", $this->id, $status, $err]); 
        K8IOkplZTmSnXty: 
        tQU6bP7zVvHl4N0: 
        return $result; 
    } ?>

Did this file decode correctly?

Original Code

<?php

/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2023-01-07 09:41:36              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
namespace GDPlayer\Hosting;

class filemoon extends \GDPlayer\CoreAbstract
{
    public function __construct($id = '')
    {
        session_write_close();
        parent::__construct($id);
        $this->baseURL = "https://filemoon.sx/";
        $this->url = $this->baseURL . "e/" . $id;
        $this->referer = $this->baseURL;
        $this->modifyCurlConfig($this->url);
    }
    private function findTitle()
    {
        session_write_close();
        $this->modifyCurlConfig(strtr($this->url, ["/e/" => "/d/"]));
        $response = curl_exec($this->ch);
        $status = curl_getinfo($this->ch, CURLINFO_HTTP_CODE);
        $err = curl_error($this->ch);
        if ($status >= 200 && $status < 400) {
            session_write_close();
            $dom = $this->domParser::str_get_html($response);
            if ($dom) {
                session_write_close();
                $title = $dom->find("title", 0);
                if (!empty($title)) {
                    session_write_close();
                    $this->title = trim(strtr($title->plaintext, ["Watching" => '', "Watch" => '', "Download" => '', "Video" => '']), " -");
                    goto tu6EvzpQDHL8_Hh;
                }
                session_write_close();
                createErrorLog(["/var/www/html/input.php", "findTitle", $this->id, "title element not found"]);
                tu6EvzpQDHL8_Hh:
                goto r2eCftFd5VCiSRw;
            }
            session_write_close();
            createErrorLog(["/var/www/html/input.php", "findTitle", $this->id, "cannot parse the html"]);
            r2eCftFd5VCiSRw:
            goto l10jsYY3Kx2NUrE;
        }
        session_write_close();
        createErrorLog(["/var/www/html/input.php", "findTitle", $this->id, $status, $err]);
        l10jsYY3Kx2NUrE:
    }
    private function parseSources(array $data = [])
    {
        session_write_close();
        $result = '';
        if (empty($data)) {
            goto tQU6bP7zVvHl4N0;
        }
        session_write_close();
        $this->modifyCurlConfig("https://filemoon.sx/dl");
        curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, "POST");
        curl_setopt($this->ch, CURLOPT_POSTFIELDS, http_build_query($data));
        $response = curl_exec($this->ch);
        $status = curl_getinfo($this->ch, CURLINFO_HTTP_CODE);
        $err = curl_error($this->ch);
        if ($status >= 200 && $status < 400) {
            session_write_close();
            $data = @json_decode($response, true);
            if (JSON_ERROR_NONE === json_last_error() && !empty($data)) {
                session_write_close();
                $result = strtr($data[0]["file"], ["0" => "5", "1" => "6", "2" => "7", "5" => "0", "6" => "1", "7" => "2"]);
                goto K73nTgywqKx0cwC;
            }
            session_write_close();
            createErrorLog(["/var/www/html/input.php", "parseSources", $this->id, "sources not found"]);
            K73nTgywqKx0cwC:
            goto K8IOkplZTmSnXty;
        }
        session_write_close();
        createErrorLog(["/var/www/html/input.php", "parseSources", $this->id, $status, $err]);
        K8IOkplZTmSnXty:
        tQU6bP7zVvHl4N0:
        return $result;
    }

Function Calls

None

Variables

None

Stats

MD5 551bde8334ea50fd50134eb091eee9f9
Eval Count 0
Decode Time 48 ms