Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
defined("\102\101\x53\x45\x50\101\124\x48") or exit("\116\157\x20\x64\x69\162\x65\143\x7..
Decoded Output download
<? defined("BASEPATH")
or exit("No direct script access allowed");
require_once APPPATH . "libraries/CryptoUtils.php";
$db["db_key"] = base64_decode("sB+SrqWcNGJuEc8xC57qhw=="); $ini_array = get_ini_array(APPPATH . INI_DBCONFIG_PATH); $active_group = "E2DB"; $query_builder = TRUE; $db["E2DB"] = array("dsn" => '', "hostname" => $ini_array["E2DB"]["hostname"], "port" => intval($ini_array["E2DB"]["port"]), "username" => CryptoUtils::xor_string(base64_decode($ini_array["E2DB"]["username"]), $db["db_key"]), "password" => CryptoUtils::xor_string(base64_decode($ini_array["E2DB"]["password"]), $db["db_key"]), "database" => $ini_array["E2DB"]["database"], "dbdriver" => $ini_array["E2DB"]["dbdriver"], "dbprefix" => '', "pconnect" => TRUE, "db_debug" => ENVIRONMENT !== "production", "cache_on" => FALSE, "cachedir" => APPPATH . "cache", "char_set" => "utf8", "dbcollat" => "utf8_general_ci", "swap_pre" => '', "encrypt" => FALSE, "compress" => FALSE, "stricton" => FALSE, "failover" => array(), "save_queries" => TRUE); $db["IMPLANT_DB"] = array("dsn" => '', "hostname" => $ini_array["IMPLANT_DB"]["hostname"], "port" => intval($ini_array["IMPLANT_DB"]["port"]), "username" => CryptoUtils::xor_string(base64_decode($ini_array["IMPLANT_DB"]["username"]), $db["db_key"]), "password" => CryptoUtils::xor_string(base64_decode($ini_array["IMPLANT_DB"]["password"]), $db["db_key"]), "database" => $ini_array["IMPLANT_DB"]["database"], "dbdriver" => $ini_array["IMPLANT_DB"]["dbdriver"], "dbprefix" => '', "pconnect" => TRUE, "db_debug" => ENVIRONMENT !== "production", "cache_on" => FALSE, "cachedir" => APPPATH . "cache", "char_set" => "utf8", "dbcollat" => "utf8_general_ci", "swap_pre" => '', "encrypt" => FALSE, "compress" => FALSE, "stricton" => FALSE, "failover" => array(), "save_queries" => TRUE); $db["E3DB"] = array("dsn" => '', "hostname" => $ini_array["E3DB"]["hostname"], "port" => intval($ini_array["E3DB"]["port"]), "username" => CryptoUtils::xor_string(base64_decode($ini_array["E3DB"]["username"]), $db["db_key"]), "password" => CryptoUtils::xor_string(base64_decode($ini_array["E3DB"]["password"]), $db["db_key"]), "database" => $ini_array["E3DB"]["database"], "dbdriver" => $ini_array["E3DB"]["dbdriver"], "dbprefix" => '', "pconnect" => TRUE, "db_debug" => ENVIRONMENT !== "production", "cache_on" => FALSE, "cachedir" => APPPATH . "cache", "char_set" => "utf8", "dbcollat" => "utf8_general_ci", "swap_pre" => '', "encrypt" => FALSE, "compress" => FALSE, "stricton" => FALSE, "failover" => array(), "save_queries" => TRUE); $db["SC_DB"] = array("dsn" => '', "hostname" => $ini_array["SC_DB"]["hostname"], "port" => intval($ini_array["SC_DB"]["port"]), "username" => CryptoUtils::xor_string(base64_decode($ini_array["SC_DB"]["username"]), $db["db_key"]), "password" => CryptoUtils::xor_string(base64_decode($ini_array["SC_DB"]["password"]), $db["db_key"]), "database" => $ini_array["SC_DB"]["database"], "dbdriver" => $ini_array["SC_DB"]["dbdriver"], "dbprefix" => '', "pconnect" => TRUE, "db_debug" => ENVIRONMENT !== "production", "cache_on" => FALSE, "cachedir" => APPPATH . "cache", "char_set" => "utf8", "dbcollat" => "utf8_general_ci", "swap_pre" => '', "encrypt" => FALSE, "compress" => FALSE, "stricton" => FALSE, "failover" => array(), "save_queries" => TRUE); $db["LOG"] = array("dsn" => '', "hostname" => $ini_array["E2DB"]["hostname"], "port" => intval($ini_array["E2DB"]["port"]), "username" => CryptoUtils::xor_string(base64_decode($ini_array["E2DB"]["username"]), $db["db_key"]), "password" => CryptoUtils::xor_string(base64_decode($ini_array["E2DB"]["password"]), $db["db_key"]), "database" => "LOG", "dbdriver" => $ini_array["E2DB"]["dbdriver"], "dbprefix" => '', "pconnect" => TRUE, "db_debug" => ENVIRONMENT !== "production", "cache_on" => FALSE, "cachedir" => APPPATH . "cache", "char_set" => "utf8", "dbcollat" => "utf8_general_ci", "swap_pre" => '', "encrypt" => FALSE, "compress" => FALSE, "stricton" => FALSE, "failover" => array(), "save_queries" => TRUE); $db["SETTING"] = array("dsn" => '', "hostname" => $ini_array["E2DB"]["hostname"], "port" => intval($ini_array["E2DB"]["port"]), "username" => CryptoUtils::xor_string(base64_decode($ini_array["E2DB"]["username"]), $db["db_key"]), "password" => CryptoUtils::xor_string(base64_decode($ini_array["E2DB"]["password"]), $db["db_key"]), "database" => "SETTING", "dbdriver" => $ini_array["E2DB"]["dbdriver"], "dbprefix" => '', "pconnect" => TRUE, "db_debug" => ENVIRONMENT !== "production", "cache_on" => FALSE, "cachedir" => APPPATH . "cache", "char_set" => "utf8", "dbcollat" => "utf8_general_ci", "swap_pre" => '', "encrypt" => FALSE, "compress" => FALSE, "stricton" => FALSE, "failover" => array(), "save_queries" => TRUE);
?>
Did this file decode correctly?
Original Code
defined("\102\101\x53\x45\x50\101\124\x48")
or exit("\116\157\x20\x64\x69\162\x65\143\x74\x20\163\x63\x72\x69\x70\x74\40\x61\143\143\x65\163\x73\x20\x61\x6c\x6c\157\167\x65\144");
require_once APPPATH . "\x6c\151\142\x72\x61\x72\x69\145\163\x2f\x43\162\171\160\164\x6f\125\x74\x69\x6c\x73\x2e\x70\150\x70";
$db["\x64\142\x5f\x6b\145\171"] = base64_decode("\x73\x42\53\123\162\x71\127\143\x4e\107\x4a\165\x45\x63\x38\170\x43\x35\67\x71\150\167\x3d\x3d"); $ini_array = get_ini_array(APPPATH . INI_DBCONFIG_PATH); $active_group = "\x45\x32\x44\102"; $query_builder = TRUE; $db["\x45\x32\104\102"] = array("\x64\x73\x6e" => '', "\x68\157\163\164\x6e\141\155\x65" => $ini_array["\x45\x32\x44\102"]["\x68\x6f\163\x74\x6e\141\155\x65"], "\x70\157\162\164" => intval($ini_array["\x45\x32\104\x42"]["\160\x6f\162\x74"]), "\x75\x73\x65\x72\156\x61\x6d\145" => CryptoUtils::xor_string(base64_decode($ini_array["\x45\x32\104\x42"]["\x75\163\x65\x72\x6e\141\155\x65"]), $db["\144\x62\137\153\x65\171"]), "\160\141\163\x73\x77\157\x72\x64" => CryptoUtils::xor_string(base64_decode($ini_array["\x45\x32\x44\102"]["\160\x61\x73\163\167\x6f\x72\x64"]), $db["\144\x62\x5f\153\x65\171"]), "\144\141\x74\x61\x62\141\163\x65" => $ini_array["\105\62\x44\102"]["\144\x61\164\x61\x62\141\x73\145"], "\x64\142\x64\x72\151\166\x65\x72" => $ini_array["\105\x32\x44\102"]["\x64\x62\x64\x72\x69\166\x65\x72"], "\144\142\160\162\145\x66\x69\170" => '', "\160\143\157\156\x6e\145\x63\x74" => TRUE, "\x64\142\137\144\x65\142\165\x67" => ENVIRONMENT !== "\160\x72\157\x64\165\x63\x74\x69\x6f\x6e", "\143\x61\x63\150\x65\x5f\x6f\156" => FALSE, "\x63\x61\x63\x68\145\x64\x69\x72" => APPPATH . "\x63\141\143\x68\145", "\x63\x68\141\162\x5f\163\x65\x74" => "\165\164\x66\70", "\x64\x62\x63\157\154\x6c\141\x74" => "\x75\164\146\70\137\x67\x65\156\145\x72\x61\154\x5f\143\x69", "\163\167\x61\160\137\160\x72\145" => '', "\x65\x6e\143\x72\x79\x70\164" => FALSE, "\143\157\155\160\162\145\163\x73" => FALSE, "\163\164\162\151\x63\164\x6f\156" => FALSE, "\146\x61\x69\154\x6f\x76\145\x72" => array(), "\163\141\166\145\x5f\x71\x75\x65\162\151\x65\163" => TRUE); $db["\x49\x4d\x50\114\101\x4e\124\x5f\104\102"] = array("\x64\163\x6e" => '', "\150\x6f\163\x74\x6e\141\155\x65" => $ini_array["\111\115\x50\114\x41\116\x54\137\104\x42"]["\x68\157\163\x74\x6e\141\x6d\x65"], "\x70\157\x72\x74" => intval($ini_array["\x49\115\x50\114\x41\116\x54\137\104\102"]["\160\x6f\x72\x74"]), "\x75\163\145\x72\x6e\141\x6d\145" => CryptoUtils::xor_string(base64_decode($ini_array["\111\115\120\114\x41\x4e\x54\x5f\x44\x42"]["\x75\x73\x65\162\x6e\141\155\145"]), $db["\x64\x62\x5f\x6b\145\171"]), "\160\141\x73\163\x77\x6f\162\x64" => CryptoUtils::xor_string(base64_decode($ini_array["\x49\x4d\x50\114\101\116\124\x5f\x44\102"]["\x70\x61\x73\x73\x77\157\x72\144"]), $db["\144\x62\x5f\153\x65\x79"]), "\x64\141\164\x61\x62\141\x73\145" => $ini_array["\111\115\x50\x4c\x41\x4e\124\x5f\x44\x42"]["\x64\x61\164\141\142\141\163\x65"], "\x64\x62\x64\x72\x69\166\x65\x72" => $ini_array["\x49\x4d\120\114\101\116\124\137\104\x42"]["\x64\x62\x64\162\x69\x76\145\x72"], "\144\142\160\162\145\146\151\170" => '', "\160\143\157\x6e\156\145\143\164" => TRUE, "\144\x62\x5f\x64\145\x62\165\x67" => ENVIRONMENT !== "\x70\162\x6f\x64\x75\x63\x74\x69\x6f\x6e", "\x63\141\143\150\145\x5f\157\x6e" => FALSE, "\x63\x61\143\x68\145\x64\x69\x72" => APPPATH . "\143\141\143\x68\145", "\x63\150\141\x72\137\163\x65\164" => "\x75\164\146\70", "\x64\142\143\x6f\154\154\x61\x74" => "\165\164\x66\70\x5f\147\145\156\145\162\x61\x6c\x5f\143\151", "\163\x77\141\160\x5f\x70\x72\x65" => '', "\145\x6e\x63\x72\171\x70\x74" => FALSE, "\x63\157\x6d\x70\x72\145\163\x73" => FALSE, "\163\164\162\151\143\164\x6f\x6e" => FALSE, "\x66\141\x69\x6c\157\166\x65\162" => array(), "\x73\141\166\145\137\161\x75\145\x72\151\145\163" => TRUE); $db["\105\x33\104\x42"] = array("\144\163\156" => '', "\x68\157\x73\x74\156\141\155\145" => $ini_array["\105\63\104\102"]["\150\x6f\163\x74\156\141\155\145"], "\x70\x6f\162\x74" => intval($ini_array["\x45\x33\104\102"]["\x70\157\162\164"]), "\165\x73\145\162\x6e\x61\x6d\x65" => CryptoUtils::xor_string(base64_decode($ini_array["\105\63\x44\x42"]["\165\163\145\162\156\x61\155\145"]), $db["\x64\x62\137\x6b\x65\x79"]), "\160\141\163\x73\x77\x6f\x72\144" => CryptoUtils::xor_string(base64_decode($ini_array["\x45\63\x44\102"]["\160\x61\163\x73\x77\157\162\x64"]), $db["\144\x62\x5f\x6b\x65\x79"]), "\144\x61\x74\141\142\x61\x73\145" => $ini_array["\x45\63\x44\102"]["\x64\x61\x74\x61\142\141\163\145"], "\144\x62\144\162\151\x76\x65\x72" => $ini_array["\x45\x33\x44\x42"]["\x64\x62\x64\162\x69\x76\x65\162"], "\x64\x62\x70\162\x65\146\x69\170" => '', "\160\x63\x6f\156\156\145\x63\164" => TRUE, "\x64\x62\137\144\x65\142\x75\x67" => ENVIRONMENT !== "\160\162\157\x64\165\x63\164\x69\x6f\x6e", "\143\x61\x63\x68\145\x5f\157\x6e" => FALSE, "\x63\x61\x63\x68\x65\x64\x69\x72" => APPPATH . "\x63\141\x63\150\x65", "\143\x68\x61\x72\137\163\x65\x74" => "\x75\x74\x66\x38", "\144\x62\143\157\154\154\x61\164" => "\165\x74\146\x38\137\147\145\156\x65\162\141\154\137\143\x69", "\163\167\x61\160\137\160\162\x65" => '', "\145\x6e\143\x72\x79\160\x74" => FALSE, "\143\157\x6d\160\x72\x65\x73\163" => FALSE, "\x73\x74\x72\x69\x63\164\x6f\156" => FALSE, "\x66\x61\x69\154\x6f\x76\x65\x72" => array(), "\x73\141\x76\145\x5f\x71\x75\x65\162\151\x65\x73" => TRUE); $db["\x53\x43\x5f\x44\x42"] = array("\x64\x73\x6e" => '', "\x68\x6f\163\x74\156\141\155\145" => $ini_array["\x53\x43\x5f\x44\x42"]["\x68\x6f\163\164\156\141\x6d\x65"], "\x70\x6f\x72\164" => intval($ini_array["\123\103\137\x44\x42"]["\x70\157\x72\164"]), "\165\x73\x65\x72\x6e\141\x6d\145" => CryptoUtils::xor_string(base64_decode($ini_array["\123\x43\137\x44\x42"]["\165\163\x65\x72\156\141\x6d\x65"]), $db["\x64\x62\137\x6b\x65\171"]), "\160\x61\x73\163\x77\x6f\x72\144" => CryptoUtils::xor_string(base64_decode($ini_array["\123\103\137\x44\102"]["\x70\141\163\x73\x77\157\x72\x64"]), $db["\x64\x62\x5f\x6b\145\x79"]), "\x64\x61\x74\141\142\x61\163\145" => $ini_array["\x53\x43\137\104\x42"]["\144\141\x74\x61\142\141\163\145"], "\x64\142\144\162\151\x76\145\x72" => $ini_array["\x53\x43\x5f\x44\x42"]["\144\142\144\x72\x69\x76\x65\162"], "\144\x62\160\162\145\146\151\x78" => '', "\x70\143\157\156\x6e\145\143\164" => TRUE, "\x64\x62\137\144\x65\x62\x75\x67" => ENVIRONMENT !== "\x70\x72\x6f\x64\165\143\x74\x69\x6f\x6e", "\x63\x61\x63\x68\145\137\157\x6e" => FALSE, "\x63\x61\x63\150\x65\144\151\162" => APPPATH . "\143\141\x63\x68\145", "\143\x68\x61\162\x5f\x73\145\164" => "\165\x74\x66\x38", "\144\x62\143\157\x6c\x6c\x61\164" => "\x75\x74\x66\70\x5f\147\145\x6e\145\x72\141\x6c\x5f\143\x69", "\x73\167\141\160\137\x70\162\x65" => '', "\145\x6e\143\162\x79\x70\x74" => FALSE, "\x63\157\155\160\x72\145\x73\163" => FALSE, "\x73\164\x72\151\143\164\157\x6e" => FALSE, "\x66\x61\151\154\157\x76\x65\162" => array(), "\163\x61\166\x65\x5f\161\165\145\162\x69\145\x73" => TRUE); $db["\114\x4f\107"] = array("\x64\163\156" => '', "\x68\157\163\x74\156\141\x6d\145" => $ini_array["\105\62\x44\102"]["\150\157\163\164\x6e\x61\x6d\145"], "\160\x6f\162\x74" => intval($ini_array["\105\62\x44\x42"]["\160\157\162\x74"]), "\165\163\145\162\x6e\x61\155\145" => CryptoUtils::xor_string(base64_decode($ini_array["\x45\x32\x44\x42"]["\165\163\x65\x72\156\x61\x6d\x65"]), $db["\144\x62\137\153\145\171"]), "\160\141\163\163\x77\157\x72\144" => CryptoUtils::xor_string(base64_decode($ini_array["\105\62\104\102"]["\x70\141\x73\163\x77\157\x72\x64"]), $db["\144\142\137\153\x65\171"]), "\x64\141\164\x61\x62\x61\163\x65" => "\114\x4f\x47", "\144\x62\144\x72\x69\166\145\x72" => $ini_array["\x45\62\x44\102"]["\x64\142\144\162\151\x76\145\162"], "\x64\142\x70\162\x65\146\151\x78" => '', "\160\x63\x6f\x6e\156\x65\143\164" => TRUE, "\x64\142\x5f\144\x65\142\165\x67" => ENVIRONMENT !== "\x70\162\157\144\165\143\164\x69\157\156", "\143\x61\143\x68\145\x5f\157\156" => FALSE, "\143\141\x63\x68\x65\x64\151\x72" => APPPATH . "\143\x61\x63\x68\145", "\x63\150\x61\x72\137\163\145\164" => "\x75\164\x66\x38", "\x64\142\x63\x6f\x6c\x6c\141\164" => "\165\164\x66\70\x5f\x67\145\x6e\145\162\x61\154\137\x63\151", "\x73\167\x61\160\x5f\160\x72\x65" => '', "\x65\x6e\x63\x72\x79\x70\164" => FALSE, "\143\x6f\155\160\162\x65\x73\x73" => FALSE, "\163\164\x72\x69\x63\164\157\156" => FALSE, "\146\141\x69\x6c\157\x76\x65\162" => array(), "\163\141\166\145\137\x71\165\145\x72\151\x65\163" => TRUE); $db["\123\105\124\124\x49\116\107"] = array("\x64\x73\156" => '', "\x68\157\x73\164\156\x61\x6d\145" => $ini_array["\x45\x32\x44\x42"]["\x68\157\x73\x74\x6e\141\x6d\145"], "\x70\157\162\164" => intval($ini_array["\x45\x32\104\102"]["\x70\157\x72\x74"]), "\165\163\x65\162\x6e\x61\x6d\145" => CryptoUtils::xor_string(base64_decode($ini_array["\x45\x32\x44\x42"]["\x75\x73\x65\162\x6e\x61\x6d\145"]), $db["\x64\x62\137\153\x65\171"]), "\160\x61\163\163\x77\157\162\144" => CryptoUtils::xor_string(base64_decode($ini_array["\x45\62\104\102"]["\160\x61\x73\x73\167\157\162\144"]), $db["\144\142\137\153\145\x79"]), "\144\141\164\x61\142\x61\x73\145" => "\123\105\124\124\x49\x4e\x47", "\144\x62\x64\x72\x69\x76\145\x72" => $ini_array["\x45\62\x44\x42"]["\x64\x62\x64\162\151\166\x65\162"], "\x64\x62\160\162\145\146\x69\170" => '', "\160\x63\x6f\x6e\156\145\x63\164" => TRUE, "\144\142\x5f\x64\x65\x62\165\147" => ENVIRONMENT !== "\160\162\157\144\165\143\x74\x69\x6f\x6e", "\x63\141\x63\150\x65\137\x6f\156" => FALSE, "\143\141\143\x68\x65\144\x69\x72" => APPPATH . "\x63\141\x63\150\x65", "\143\150\141\x72\x5f\163\x65\x74" => "\x75\x74\146\70", "\x64\142\143\x6f\x6c\x6c\141\x74" => "\x75\x74\x66\x38\x5f\x67\145\156\145\162\141\154\137\143\x69", "\163\167\141\160\x5f\160\162\145" => '', "\145\x6e\143\x72\171\160\164" => FALSE, "\143\157\x6d\x70\162\145\x73\163" => FALSE, "\x73\164\162\x69\x63\164\157\x6e" => FALSE, "\146\141\x69\154\x6f\166\145\x72" => array(), "\163\x61\166\x65\x5f\x71\x75\145\162\x69\x65\x73" => TRUE);
Function Calls
defined | 1 |
Stats
MD5 | 064e99284ec785c041ae4b57f8946c1a |
Eval Count | 0 |
Decode Time | 66 ms |