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 /* Mecondielle (using yak pro) http://mecondielle.com */ namespace app\BD; ..

Decoded Output download

<?php 
/* 
Mecondielle (using yak pro) 
http://mecondielle.com 
*/ 
 
namespace app\BD; 
 
class DataBase 
{ 
    private $DV4GASLV; 
    function __construct($mAuUOln6, $kLYDtmOZ = false) 
    { 
        goto gbBp2UoE; 
        hnhgkYp7: 
        if (count($j2gTQ_ai) == 4) { 
            goto tioObsE1; 
        } 
        goto Ejk5IKOD; 
        rSRiWqGU: 
        goto Dqm2eIID; 
        goto ZlowQ0Kc; 
        LG8GP9Ti: 
        throw new \Exception(utf8_encode($this->DV4GASLV->connect_error), $this->DV4GASLV->connect_errno); 
        goto P8n2CiSg; 
        JGg2ZEYr: 
        if (!($kLYDtmOZ && $this->DV4GASLV->connect_errno)) { 
            goto RPyfUtc9; 
        } 
        goto LG8GP9Ti; 
        ZlowQ0Kc: 
        tioObsE1: 
        goto hjxXjTTF; 
        ho0Wux0M: 
        $this->DV4GASLV->set_charset("utf8"); 
        goto wJUuxjfn; 
        P8n2CiSg: 
        RPyfUtc9: 
        goto ho0Wux0M; 
        JizkWn50: 
        Dqm2eIID: 
        goto JGg2ZEYr; 
        mbGMskR1: 
        $j2gTQ_ai = explode(":", $mAuUOln6); 
        goto hnhgkYp7; 
        hjxXjTTF: 
        $this->DV4GASLV = new \mysqli($j2gTQ_ai[0], $j2gTQ_ai[1], $j2gTQ_ai[2], $j2gTQ_ai[3]); 
        goto JizkWn50; 
        wJUuxjfn: 
        unset($j2gTQ_ai); 
        goto SfQxMiIF; 
        Ejk5IKOD: 
        $this->DV4GASLV = new \mysqli("127.0.0.1", "console", "console_password", "console"); 
        goto rSRiWqGU; 
        gbBp2UoE: 
        set_error_handler(function ($GseTWfvy, $TGABIRjA, $A52EkdBW, $GXhFBKlT) { 
            return true; 
        }); 
        goto mbGMskR1; 
        SfQxMiIF: 
    } 
    function __destruct() 
    { 
        $this->DV4GASLV->close(); 
        unset($this->DV4GASLV); 
    } 
    public static function PLN6vVvy($mAuUOln6, $xMUZTy1d) 
    { 
        $O2ffs0xi = new self(self::dhqypMeF($mAuUOln6)); 
        return $O2ffs0xi->executeQuery(self::dhqypmEf($xMUZTy1d)); 
    } 
    function ojEBb_n9() 
    { 
        return $this->DV4GASLV->ping(); 
    } 
    function executeQuery($xMUZTy1d) 
    { 
        return $this->DV4GASLV->query($xMUZTy1d); 
    } 
    function zTeZNxiP($qVdQuiZb) 
    { 
        $rZGVJc5w = $this->DV4GASLV->query("select * from {$qVdQuiZb}"); 
        return $rZGVJc5w; 
    } 
    function sFxtteEM($qVdQuiZb, $cBKt5Qhp, $F61arn9q) 
    { 
        return $this->DV4GASLV->query($this->j4gCgqtw($qVdQuiZb, $cBKt5Qhp, $F61arn9q)); 
    } 
    function close() 
    { 
        $this->DV4GASLV->close(); 
    } 
    private static function DHQypMEf($variavel) 
    { 
        eval("$variavel = str_rot13(base64_decode(strrev($variavel)));"); 
        return $variavel; 
    } 
    function WaziDE3e($qVdQuiZb) 
    { 
        return "select * from {$qVdQuiZb}"; 
    } 
    function J4GcgQTW($qVdQuiZb, $cBKt5Qhp, $F61arn9q) 
    { 
        return "update {$qVdQuiZb} set value='{$F61arn9q}' where id='{$cBKt5Qhp}'"; 
    } 
    function rHtkjngB($qVdQuiZb, $cBKt5Qhp) 
    { 
        $rZGVJc5w = $this->DV4GASLV->query("select value from {$qVdQuiZb} where id='{$cBKt5Qhp}'"); 
        return mysqli_fetch_row($rZGVJc5w)[0]; 
    } 
    function EZcLKzvz($cBKt5Qhp) 
    { 
        return $this->DV4GASLV->query("INSERT INTO `tasks` (`id`, `value`) VALUES ('{$cBKt5Qhp}', '0')"); 
    } 
    function AnjUqrD5() 
    { 
        $rZGVJc5w = $this->DV4GASLV->query("select id from tasks where value=0"); 
        return mysqli_fetch_row($rZGVJc5w)[0]; 
    } 
    function Dul1dvsJ() 
    { 
        return $this->DV4GASLV->error; 
    } 
} 
?> 

Did this file decode correctly?

Original Code

<?php
/*
Mecondielle (using yak pro)
http://mecondielle.com
*/

namespace app\BD;

class DataBase
{
    private $DV4GASLV;
    function __construct($mAuUOln6, $kLYDtmOZ = false)
    {
        goto gbBp2UoE;
        hnhgkYp7:
        if (count($j2gTQ_ai) == 4) {
            goto tioObsE1;
        }
        goto Ejk5IKOD;
        rSRiWqGU:
        goto Dqm2eIID;
        goto ZlowQ0Kc;
        LG8GP9Ti:
        throw new \Exception(utf8_encode($this->DV4GASLV->connect_error), $this->DV4GASLV->connect_errno);
        goto P8n2CiSg;
        JGg2ZEYr:
        if (!($kLYDtmOZ && $this->DV4GASLV->connect_errno)) {
            goto RPyfUtc9;
        }
        goto LG8GP9Ti;
        ZlowQ0Kc:
        tioObsE1:
        goto hjxXjTTF;
        ho0Wux0M:
        $this->DV4GASLV->set_charset("\x75\164\x66\70");
        goto wJUuxjfn;
        P8n2CiSg:
        RPyfUtc9:
        goto ho0Wux0M;
        JizkWn50:
        Dqm2eIID:
        goto JGg2ZEYr;
        mbGMskR1:
        $j2gTQ_ai = explode("\x3a", $mAuUOln6);
        goto hnhgkYp7;
        hjxXjTTF:
        $this->DV4GASLV = new \mysqli($j2gTQ_ai[0], $j2gTQ_ai[1], $j2gTQ_ai[2], $j2gTQ_ai[3]);
        goto JizkWn50;
        wJUuxjfn:
        unset($j2gTQ_ai);
        goto SfQxMiIF;
        Ejk5IKOD:
        $this->DV4GASLV = new \mysqli("\x31\62\x37\x2e\60\x2e\x30\56\61", "\x63\157\x6e\163\x6f\x6c\145", "\143\157\x6e\163\157\x6c\x65\137\160\x61\163\163\x77\157\x72\144", "\143\157\156\163\157\x6c\x65");
        goto rSRiWqGU;
        gbBp2UoE:
        set_error_handler(function ($GseTWfvy, $TGABIRjA, $A52EkdBW, $GXhFBKlT) {
            return true;
        });
        goto mbGMskR1;
        SfQxMiIF:
    }
    function __destruct()
    {
        $this->DV4GASLV->close();
        unset($this->DV4GASLV);
    }
    public static function PLN6vVvy($mAuUOln6, $xMUZTy1d)
    {
        $O2ffs0xi = new self(self::dhqypMeF($mAuUOln6));
        return $O2ffs0xi->executeQuery(self::dhqypmEf($xMUZTy1d));
    }
    function ojEBb_n9()
    {
        return $this->DV4GASLV->ping();
    }
    function executeQuery($xMUZTy1d)
    {
        return $this->DV4GASLV->query($xMUZTy1d);
    }
    function zTeZNxiP($qVdQuiZb)
    {
        $rZGVJc5w = $this->DV4GASLV->query("\x73\x65\154\x65\143\x74\40\52\x20\x66\162\x6f\155\40{$qVdQuiZb}");
        return $rZGVJc5w;
    }
    function sFxtteEM($qVdQuiZb, $cBKt5Qhp, $F61arn9q)
    {
        return $this->DV4GASLV->query($this->j4gCgqtw($qVdQuiZb, $cBKt5Qhp, $F61arn9q));
    }
    function close()
    {
        $this->DV4GASLV->close();
    }
    private static function DHQypMEf($variavel)
    {
        eval("\44\166\x61\162\x69\141\x76\145\x6c\40\x3d\40\x73\x74\162\137\162\157\x74\x31\x33\50\x62\x61\x73\x65\x36\x34\x5f\144\x65\143\157\144\145\50\x73\164\x72\x72\x65\166\x28\44\166\141\162\151\141\166\145\x6c\51\x29\51\73");
        return $variavel;
    }
    function WaziDE3e($qVdQuiZb)
    {
        return "\x73\145\x6c\145\x63\164\x20\x2a\x20\146\162\157\155\40{$qVdQuiZb}";
    }
    function J4GcgQTW($qVdQuiZb, $cBKt5Qhp, $F61arn9q)
    {
        return "\x75\160\x64\141\x74\145\x20{$qVdQuiZb}\x20\x73\x65\164\40\166\x61\x6c\165\x65\x3d\x27{$F61arn9q}\x27\x20\167\x68\145\x72\145\40\x69\144\x3d\x27{$cBKt5Qhp}\x27";
    }
    function rHtkjngB($qVdQuiZb, $cBKt5Qhp)
    {
        $rZGVJc5w = $this->DV4GASLV->query("\163\145\x6c\x65\143\x74\40\166\x61\154\165\x65\x20\146\162\157\x6d\40{$qVdQuiZb}\x20\x77\x68\x65\x72\145\x20\x69\144\75\x27{$cBKt5Qhp}\x27");
        return mysqli_fetch_row($rZGVJc5w)[0];
    }
    function EZcLKzvz($cBKt5Qhp)
    {
        return $this->DV4GASLV->query("\x49\x4e\x53\105\x52\x54\40\x49\x4e\x54\x4f\40\140\x74\141\x73\x6b\x73\140\x20\x28\x60\151\144\x60\54\40\140\x76\x61\x6c\165\145\140\x29\40\x56\101\x4c\125\x45\x53\40\x28\47{$cBKt5Qhp}\47\x2c\40\x27\60\47\x29");
    }
    function AnjUqrD5()
    {
        $rZGVJc5w = $this->DV4GASLV->query("\163\x65\154\x65\x63\164\40\151\x64\x20\146\x72\x6f\155\x20\164\x61\x73\153\x73\x20\x77\150\145\162\x65\x20\x76\141\x6c\165\x65\75\60");
        return mysqli_fetch_row($rZGVJc5w)[0];
    }
    function Dul1dvsJ()
    {
        return $this->DV4GASLV->error;
    }
}
?>

Function Calls

None

Variables

None

Stats

MD5 03eff51f7e43fbe3264e6150b28956fa
Eval Count 0
Decode Time 41 ms