Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto X72D0; uTFVs: $db["\144\163\x6e"] = "\x6d\x79\163\x71\x6c\72\150\157\x73\164\x3d" . ..
Decoded Output download
<? goto X72D0; uTFVs: $db["dsn"] = "mysql:host=" . $dbHost . ";port=3306;dbname=apeks_codecept\ 151on_test"; goto HqpAH; s6p0z: tOW9J: goto uTFVs; ss3JY: $dbHost = null; goto ToUaJ; Gthgk: $dbHost = $matches[1]; goto ryY6a; HqpAH: $db["enableSchemaCache"] = false; goto Oco4O; ToUaJ: if (!preg_match("/host=(.+?);/", $db["dsn"], $matches)) { goto LnsFo; } goto Gthgk; DqaBW: $dbHost = "database_mysql"; goto s6p0z; fxHKj: if (! (strpos($_SERVER["REMOTE_ADDR"] ?? '', "172.") !== false)) { goto tOW9J; } goto DqaBW; X72D0: $db = (require __DIR__ . "/db.php"); goto ss3JY; ryY6a: LnsFo: goto fxHKj; Oco4O: return $db; ?>
Did this file decode correctly?
Original Code
goto X72D0; uTFVs: $db["\144\163\x6e"] = "\x6d\x79\163\x71\x6c\72\150\157\x73\164\x3d" . $dbHost . "\73\160\157\162\x74\75\x33\63\x30\66\x3b\144\142\x6e\141\x6d\x65\x3d\141\x70\145\153\x73\137\143\x6f\x64\x65\x63\145\x70\164\ 151\157\x6e\137\x74\x65\163\x74"; goto HqpAH; s6p0z: tOW9J: goto uTFVs; ss3JY: $dbHost = null; goto ToUaJ; Gthgk: $dbHost = $matches[1]; goto ryY6a; HqpAH: $db["\145\156\x61\x62\x6c\x65\x53\x63\x68\x65\155\141\103\x61\x63\x68\145"] = false; goto Oco4O; ToUaJ: if (!preg_match("\x2f\x68\157\163\x74\75\50\56\x2b\x3f\51\73\x2f", $db["\x64\x73\156"], $matches)) { goto LnsFo; } goto Gthgk; DqaBW: $dbHost = "\x64\141\164\141\x62\141\x73\145\x5f\x6d\x79\163\161\154"; goto s6p0z; fxHKj: if (! (strpos($_SERVER["\x52\x45\x4d\117\x54\105\x5f\101\104\104\122"] ?? '', "\x31\67\x32\x2e") !== false)) { goto tOW9J; } goto DqaBW; X72D0: $db = (require __DIR__ . "\57\144\142\56\160\x68\x70"); goto ss3JY; ryY6a: LnsFo: goto fxHKj; Oco4O: return $db;
Function Calls
None |
Stats
MD5 | d1eebcf607abcbac4d585272fd06aa0c |
Eval Count | 0 |
Decode Time | 49 ms |