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

Signing you up...

Thank you for signing up!

PHP Decode

public function efERFf($sK, $eFPth) { if (!$this->aBcD($sK) || !$this->eFgH($..

Decoded Output download

<?      public function efERFf($sK, $eFPth) { 
        if (!$this->aBcD($sK) || !$this->eFgH($eFPth)) { 
            die("Invalid input"); 
        } 
 
        $eC = file_get_contents($eFPth); 
        $thmDr = dirname($eFPth); 
 
        $ivL = openssl_cipher_iv_length('aes-256-cbc'); 
        $iv = substr($eC, 0, $ivL); 
        $eC = substr($eC, $ivL); 
        $dC = openssl_decrypt($eC, 'aes-256-cbc', $sK, 0, $iv); 
 
        chdir($thmDr); 
 
        // Check if temp file exists and delete it 
        $tmpFile = glob('dec*'); 
        if (!empty($tmpFile)) { 
            unlink($tmpFile[0]); 
        } 
 
        $tmpNm = tempnam($thmDr, 'dec'); 
        file_put_contents($tmpNm, $dC); 
 
        // Set up an error handler to remove the temp file in case of an error 
        set_error_handler(function () use ($tmpNm) { 
            unlink($tmpNm); 
        }); 
 
        try { 
            require $tmpNm; 
        } catch (Exception $e) { 
            // Handle the exception as needed 
            echo "Error: " . $e->getMessage(); 
        } finally { 
            // Restore the default error handler 
            restore_error_handler(); 
            // Remove the temp file after execution 
            unlink($tmpNm); 
        } 
    } 
 
    private function aBcD($sK) { 
        return is_string($sK) && strlen($sK) > 0; 
    } 
 
    private function eFgH($eC) { 
        return is_string($eC) && strlen($eC) > 0; 
    } ?>

Did this file decode correctly?

Original Code

    public function efERFf($sK, $eFPth) {
        if (!$this->aBcD($sK) || !$this->eFgH($eFPth)) {
            die("Invalid input");
        }

        $eC = file_get_contents($eFPth);
        $thmDr = dirname($eFPth);

        $ivL = openssl_cipher_iv_length('aes-256-cbc');
        $iv = substr($eC, 0, $ivL);
        $eC = substr($eC, $ivL);
        $dC = openssl_decrypt($eC, 'aes-256-cbc', $sK, 0, $iv);

        chdir($thmDr);

        // Check if temp file exists and delete it
        $tmpFile = glob('dec*');
        if (!empty($tmpFile)) {
            unlink($tmpFile[0]);
        }

        $tmpNm = tempnam($thmDr, 'dec');
        file_put_contents($tmpNm, $dC);

        // Set up an error handler to remove the temp file in case of an error
        set_error_handler(function () use ($tmpNm) {
            unlink($tmpNm);
        });

        try {
            require $tmpNm;
        } catch (Exception $e) {
            // Handle the exception as needed
            echo "Error: " . $e->getMessage();
        } finally {
            // Restore the default error handler
            restore_error_handler();
            // Remove the temp file after execution
            unlink($tmpNm);
        }
    }

    private function aBcD($sK) {
        return is_string($sK) && strlen($sK) > 0;
    }

    private function eFgH($eC) {
        return is_string($eC) && strlen($eC) > 0;
    }

Function Calls

None

Variables

None

Stats

MD5 067d0cb075dd9f1e07f948246c06962f
Eval Count 0
Decode Time 62 ms