Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

^[j^r^ goto jN8d5; jN8d5: include "\x73\x63\162\151\160\164\57\151\156\151\x2e\x70\150\1..

Decoded Output download

<?  ^[j^r^ 
 goto jN8d5; jN8d5: include "script/ini.php"; goto ln2AX; ln2AX: function validateIPN($token) { $url = "https://faucetpay.io/merchant/get-payment/" . $token; $response = file_get_contents($url); return json_decode($response, true); } goto cqWV0; MPlPt: if ($_SERVER["REQUEST_METHOD"] === "POST") { $token = $_POST["token"]; $payment_info = validateIPN($token); if ($payment_info && $payment_info["valid"]) { $merchant_username = $payment_info["merchant_username"]; $amount1 = $payment_info["amount1"]; $currency1 = $payment_info["currency1"]; $custom = $payment_info["custom"]; $expected_username = "cubershot"; if ($merchant_username === $expected_username) { if (updateAdStatus($custom)) { echo "Payment processed successfully and ad activated."; } else { echo "Failed to activate ad. Database update error."; } } else { echo "Invalid merchant username. Potential hacking attempt."; } } else { echo "Invalid token or payment validation failed."; } } else { echo "Invalid request method."; } goto dL74q; cqWV0: function updateAdStatus($adId) { global $db; $sql = "UPDATE `advertisements` SET `active`='active' WHERE `id`={$adId}"; return $db->query($sql); } goto MPlPt; dL74q:  ?>

Did this file decode correctly?

Original Code

^[j^r^
 goto jN8d5; jN8d5: include "\x73\x63\162\151\160\164\57\151\156\151\x2e\x70\150\160"; goto ln2AX; ln2AX: function validateIPN($token) { $url = "\x68\164\x74\160\163\x3a\x2f\x2f\x66\141\x75\x63\x65\x74\160\141\x79\56\151\157\57\x6d\145\x72\143\150\x61\x6e\164\x2f\147\145\x74\x2d\x70\x61\x79\x6d\x65\156\x74\x2f" . $token; $response = file_get_contents($url); return json_decode($response, true); } goto cqWV0; MPlPt: if ($_SERVER["\x52\x45\x51\x55\x45\x53\x54\x5f\115\x45\x54\110\x4f\104"] === "\x50\117\123\124") { $token = $_POST["\164\x6f\x6b\145\156"]; $payment_info = validateIPN($token); if ($payment_info && $payment_info["\166\x61\154\151\x64"]) { $merchant_username = $payment_info["\155\x65\x72\143\150\x61\156\x74\137\x75\163\x65\x72\x6e\x61\x6d\145"]; $amount1 = $payment_info["\x61\155\157\165\x6e\x74\x31"]; $currency1 = $payment_info["\x63\x75\x72\162\x65\156\x63\x79\x31"]; $custom = $payment_info["\x63\165\163\x74\157\x6d"]; $expected_username = "\143\x75\142\145\162\163\x68\x6f\164"; if ($merchant_username === $expected_username) { if (updateAdStatus($custom)) { echo "\x50\141\x79\x6d\145\156\164\x20\x70\162\x6f\x63\x65\163\163\x65\x64\x20\x73\165\143\x63\145\163\x73\x66\165\x6c\154\171\x20\141\x6e\144\x20\141\144\x20\x61\x63\164\x69\x76\x61\x74\145\144\x2e"; } else { echo "\x46\x61\151\x6c\x65\144\40\164\157\x20\141\143\x74\151\x76\141\164\145\40\x61\144\x2e\40\x44\x61\164\x61\142\x61\163\145\40\x75\160\x64\141\164\145\x20\145\x72\x72\157\162\x2e"; } } else { echo "\x49\x6e\166\x61\154\151\x64\40\x6d\145\x72\143\150\x61\x6e\164\40\165\x73\x65\162\x6e\141\x6d\145\x2e\40\x50\x6f\164\145\x6e\164\151\x61\x6c\40\x68\x61\x63\153\151\156\x67\40\141\164\164\x65\x6d\160\164\x2e"; } } else { echo "\x49\156\166\141\154\x69\x64\x20\x74\x6f\x6b\x65\x6e\40\x6f\x72\40\160\141\x79\155\x65\156\x74\x20\x76\141\x6c\151\144\141\164\x69\x6f\x6e\x20\146\141\x69\154\x65\x64\56"; } } else { echo "\x49\x6e\x76\141\154\151\144\x20\x72\x65\161\165\145\x73\x74\x20\155\x65\x74\150\x6f\x64\56"; } goto dL74q; cqWV0: function updateAdStatus($adId) { global $db; $sql = "\x55\x50\104\101\x54\105\40\140\141\x64\x76\x65\x72\x74\151\163\145\155\x65\x6e\x74\163\140\40\123\x45\124\x20\140\141\x63\x74\151\166\x65\x60\75\47\141\x63\164\151\166\x65\47\40\127\110\x45\122\105\40\140\151\x64\x60\x3d{$adId}"; return $db->query($sql); } goto MPlPt; dL74q: 

Function Calls

None

Variables

None

Stats

MD5 dada19ceae6a825e8ba41e4d28a26d69
Eval Count 0
Decode Time 58 ms