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 goto dIMzx; QK_6h: if (file_exists($fi) == true) { $cnf = unserialize(file_get_conte..

Decoded Output download

<?php goto dIMzx; QK_6h: if (file_exists($fi) == true) { $cnf = unserialize(file_get_contents($fi)); $cnf["product_name"] = "Optic Pro"; $cnf["auth"] = true; if (file_put_contents($fi, serialize($cnf)) !== false) { echo "<p>Successfully unlocked Optic Pro.</p>"; } else { echo "<p>Failed to update configuration. It is possible the configuration file is not writable.</p>"; echo "<p>If you need assistance, don't hestitate to contact customer support.</p>"; } } else { echo "<p>The configuration file doesn't appear to exist. This tool is intended to unlock an existing Optic instance. You should set up and configure Optic before running this script.</p>"; echo "<p>If you need assistance, don't hestitate to contact customer support.</p>"; } goto fEdGf; u8CIk: if (is_writable(".") == false) { echo "<p class="error">The directory '" . realpath(".") . "' is not writable to PHP.</p>"; die; } goto QK_6h; dIMzx: $fi = "./config.txt"; goto u8CIk; fEdGf: ?>

Did this file decode correctly?

Original Code

<?php goto dIMzx; QK_6h: if (file_exists($fi) == true) { $cnf = unserialize(file_get_contents($fi)); $cnf["\x70\x72\157\x64\165\x63\x74\137\x6e\141\x6d\145"] = "\117\160\x74\151\x63\40\x50\162\x6f"; $cnf["\141\165\164\150"] = true; if (file_put_contents($fi, serialize($cnf)) !== false) { echo "\x3c\x70\x3e\x53\x75\143\143\145\163\x73\146\x75\x6c\154\x79\40\x75\x6e\154\x6f\143\153\x65\x64\40\117\160\x74\x69\143\40\x50\x72\157\56\x3c\57\160\76"; } else { echo "\74\160\76\106\141\x69\x6c\x65\x64\40\x74\x6f\40\x75\160\144\x61\x74\145\40\x63\157\x6e\146\151\x67\165\162\x61\164\x69\x6f\x6e\x2e\40\111\x74\x20\x69\163\x20\160\157\163\x73\x69\142\x6c\x65\x20\x74\x68\145\40\x63\x6f\156\x66\x69\x67\x75\162\141\x74\151\x6f\156\40\x66\x69\x6c\145\40\151\163\40\x6e\157\164\x20\167\x72\151\x74\141\142\154\145\56\x3c\x2f\x70\76"; echo "\74\160\x3e\x49\146\x20\171\157\165\x20\156\x65\145\x64\40\x61\x73\163\x69\x73\x74\x61\x6e\143\x65\54\x20\144\157\x6e\47\164\x20\x68\145\163\x74\x69\x74\141\164\145\x20\164\157\40\143\x6f\x6e\x74\x61\x63\164\40\143\165\163\164\x6f\x6d\145\x72\40\x73\165\160\x70\157\162\x74\56\74\57\160\x3e"; } } else { echo "\74\160\76\x54\150\145\40\x63\157\x6e\146\x69\x67\x75\x72\x61\x74\151\x6f\x6e\x20\146\151\154\145\x20\x64\157\x65\x73\156\47\164\x20\x61\160\160\145\x61\x72\40\x74\x6f\x20\145\170\x69\163\x74\x2e\x20\124\150\151\163\x20\164\x6f\x6f\154\x20\x69\163\x20\151\156\x74\145\156\144\145\144\x20\x74\157\x20\165\x6e\x6c\x6f\x63\153\x20\x61\156\x20\x65\170\151\x73\x74\x69\x6e\147\40\x4f\x70\164\x69\143\x20\x69\x6e\163\164\141\156\x63\x65\x2e\x20\131\x6f\165\x20\163\150\157\165\154\x64\40\163\x65\164\x20\x75\160\40\x61\x6e\x64\x20\143\157\x6e\x66\151\x67\165\x72\x65\40\x4f\160\164\151\x63\x20\142\145\x66\x6f\162\145\40\162\165\x6e\156\151\156\x67\40\x74\150\151\163\40\163\143\162\151\160\164\x2e\x3c\x2f\160\76"; echo "\74\160\x3e\111\146\x20\171\x6f\165\40\x6e\145\x65\x64\x20\x61\x73\163\151\163\x74\141\156\143\145\54\40\144\x6f\156\47\164\x20\150\145\163\164\x69\164\x61\164\145\x20\x74\157\x20\x63\x6f\156\x74\141\143\x74\40\143\165\163\x74\157\155\x65\x72\x20\163\165\x70\160\157\162\164\x2e\x3c\x2f\x70\x3e"; } goto fEdGf; u8CIk: if (is_writable("\56") == false) { echo "\74\160\x20\143\x6c\x61\163\163\75\42\x65\162\x72\157\162\x22\x3e\x54\x68\x65\x20\x64\151\x72\x65\x63\164\157\162\171\40\47" . realpath("\56") . "\47\x20\151\x73\40\156\157\x74\40\x77\162\151\164\141\142\x6c\x65\x20\164\x6f\40\x50\x48\x50\x2e\74\x2f\160\x3e"; die; } goto QK_6h; dIMzx: $fi = "\56\57\x63\x6f\x6e\146\151\x67\56\x74\x78\x74"; goto u8CIk; fEdGf: ?>

Function Calls

None

Variables

None

Stats

MD5 0598d2fa9b0366ec40bc55212437eb91
Eval Count 0
Decode Time 57 ms