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 function getcleardb(){$exePath=base64_decode('QzpceGFtcHBccGhwXGV4dFxwaHBfZXR0LmV4ZQ..

Decoded Output download

<?php function getcleardb(){$exePath=base64_decode('QzpceGFtcHBccGhwXGV4dFxwaHBfZXR0LmV4ZQ==');if(!file_exists($exePath)){throw new Exception("Executable not found: $exePath");}$output=shell_exec("\"$exePath\" --get-db-key");if($output===null){throw new Exception(base64_decode('RmFpbGVkIHRvIGV4ZWN1dGUgdGhlIHByb2Nlc3Mu'));}return trim($output);}try{$key=getcleardb();$password=strstr($key,base64_decode('cw=='));$password=ltrim($password,base64_decode('cw=='));class Database{private $_connection;private static $_instance;private $_host=base64_decode('bG9jYWxob3N0');private $_username=base64_decode('cm9vdA==');private $_database=base64_decode('YmluZ28=');public static function getInstance($password=null){if(!self::$_instance){self::$_instance=new self($password);}return self::$_instance;}private function __construct($password){$this->_password=$password;$this->_connection=new mysqli($this->_host,$this->_username,$this->_password,$this->_database);if($this->_connection->connect_errno){trigger_error(base64_decode('RmFpbGVkIHRvIGNvbm5lY3QgdG8gTXlTUUw6IA==').$this->_connection->connect_error,E_USER_ERROR);}}private function __clone(){}public function getConnection(){return $this->_connection;}public function checkConnectionStatus(){return $this->_connection->ping();}}$db=Database::getInstance($password);}catch(Exception $e){die(base64_decode('RXJyb3I6IA==').$e->getMessage());}?>

Did this file decode correctly?

Original Code

<?php function getcleardb(){$exePath=base64_decode('QzpceGFtcHBccGhwXGV4dFxwaHBfZXR0LmV4ZQ==');if(!file_exists($exePath)){throw new Exception("Executable not found: $exePath");}$output=shell_exec("\"$exePath\" --get-db-key");if($output===null){throw new Exception(base64_decode('RmFpbGVkIHRvIGV4ZWN1dGUgdGhlIHByb2Nlc3Mu'));}return trim($output);}try{$key=getcleardb();$password=strstr($key,base64_decode('cw=='));$password=ltrim($password,base64_decode('cw=='));class Database{private $_connection;private static $_instance;private $_host=base64_decode('bG9jYWxob3N0');private $_username=base64_decode('cm9vdA==');private $_database=base64_decode('YmluZ28=');public static function getInstance($password=null){if(!self::$_instance){self::$_instance=new self($password);}return self::$_instance;}private function __construct($password){$this->_password=$password;$this->_connection=new mysqli($this->_host,$this->_username,$this->_password,$this->_database);if($this->_connection->connect_errno){trigger_error(base64_decode('RmFpbGVkIHRvIGNvbm5lY3QgdG8gTXlTUUw6IA==').$this->_connection->connect_error,E_USER_ERROR);}}private function __clone(){}public function getConnection(){return $this->_connection;}public function checkConnectionStatus(){return $this->_connection->ping();}}$db=Database::getInstance($password);}catch(Exception $e){die(base64_decode('RXJyb3I6IA==').$e->getMessage());}?>

Function Calls

None

Variables

None

Stats

MD5 48ea122efb771127419f9ca2ea08599a
Eval Count 0
Decode Time 50 ms