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 VLRKA; UXgAd: $req = json_decode(file_get_contents("\160\x68\160\x3a\57\x2f\x..

Decoded Output download

<?php 
 goto VLRKA; UXgAd: $req = json_decode(file_get_contents("php://input"), true); goto ua3Zm; VLRKA: require __DIR__ . "/../../../../sys/protect.php"; goto UXgAd; ua3Zm: $file = ROOT . "/dashboard/addons/messages.json"; goto FEtpm; FEtpm: if (file_exists($file)) { $content = json_decode(file_get_contents($file), true); if (empty($content)) { $content = array(); } $keys = array_keys($req); foreach ($keys as $phrase) { if (strpos($phrase, ":")) { $key = explode(":", $phrase); if (empty($content[$key[0]])) { $content[$key[0]] = array(); } if (empty($content[$key[0]])) { $content[$key[0]] = array(); } $content[$key[0]][$key[1]] = strip_tags($req[$key[0] . ":" . $key[1]]); } else { $content[$phrase] = strip_tags($req[$phrase]); } } if (file_put_contents($file, json_encode(array_filter($content)))) { echo json_encode(array("error" => false, "message" => "As mensagens do bot foram atualizadas com sucesso!")); } else { echo json_encode(array("error" => true, "message" => "Ocorreu um erro ao atualizar as mensagens do bot, tente novamente.")); } } ?>

Did this file decode correctly?

Original Code

<?php
 goto VLRKA; UXgAd: $req = json_decode(file_get_contents("\160\x68\160\x3a\57\x2f\x69\x6e\x70\165\164"), true); goto ua3Zm; VLRKA: require __DIR__ . "\57\x2e\x2e\x2f\56\56\57\x2e\56\x2f\x2e\x2e\57\x73\x79\163\57\160\162\157\164\x65\x63\164\56\x70\x68\160"; goto UXgAd; ua3Zm: $file = ROOT . "\57\x64\x61\163\150\142\157\141\162\144\x2f\x61\144\x64\157\156\x73\57\155\x65\x73\163\141\x67\145\x73\x2e\152\x73\157\156"; goto FEtpm; FEtpm: if (file_exists($file)) { $content = json_decode(file_get_contents($file), true); if (empty($content)) { $content = array(); } $keys = array_keys($req); foreach ($keys as $phrase) { if (strpos($phrase, "\72")) { $key = explode("\72", $phrase); if (empty($content[$key[0]])) { $content[$key[0]] = array(); } if (empty($content[$key[0]])) { $content[$key[0]] = array(); } $content[$key[0]][$key[1]] = strip_tags($req[$key[0] . "\x3a" . $key[1]]); } else { $content[$phrase] = strip_tags($req[$phrase]); } } if (file_put_contents($file, json_encode(array_filter($content)))) { echo json_encode(array("\x65\x72\x72\x6f\x72" => false, "\x6d\x65\163\x73\x61\x67\x65" => "\101\163\x20\155\x65\x6e\x73\141\x67\145\x6e\163\x20\x64\x6f\40\x62\x6f\x74\40\x66\x6f\x72\141\155\40\x61\164\x75\141\154\x69\172\141\x64\x61\x73\40\143\x6f\155\x20\163\165\x63\145\163\163\157\41")); } else { echo json_encode(array("\145\x72\x72\157\x72" => true, "\155\145\x73\x73\141\x67\145" => "\117\x63\x6f\162\x72\x65\165\40\165\x6d\x20\x65\162\162\157\x20\141\x6f\x20\x61\164\165\x61\x6c\x69\x7a\x61\162\x20\x61\x73\40\155\145\x6e\x73\x61\x67\145\156\x73\x20\x64\x6f\x20\142\x6f\x74\54\x20\164\145\156\164\x65\x20\156\x6f\166\141\155\145\156\164\145\x2e")); } }

Function Calls

None

Variables

None

Stats

MD5 4fd054c460e428024aa53517017ca54e
Eval Count 0
Decode Time 49 ms