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

Signing you up...

Thank you for signing up!

PHP Decode

private function findTitle() { session_write_close(); $this->modify..

Decoded Output download

<?  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: 
    } ?>

Did this file decode correctly?

Original Code

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:
    }

Function Calls

None

Variables

None

Stats

MD5 0a071d7db13ae32af9a1d8d10a361561
Eval Count 0
Decode Time 57 ms