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 nLLvu; Pz52U: $server = (new Server())->findById($req->server_id); goto q6qr9..

Decoded Output download

<?php 
 goto nLLvu; Pz52U: $server = (new Server())->findById($req->server_id); goto q6qr9; n74qQ: require __DIR__ . "/../../../../sys/Class/Models/UserAccount.php"; goto o08zn; hv01D: require __DIR__ . "/../../../../sys/Class/Models/Server.php"; goto n74qQ; o08zn: $req = json_decode(file_get_contents("php://input")); goto Pz52U; nLLvu: require __DIR__ . "/../../../../sys/protect.php"; goto hv01D; q6qr9: if (isset($server)) { $accounts = (new UserAccount())->find("server_id=:server_id", "server_id={$server->id}")->fetch(true); if ($server->destroy()) { if (isset($accounts)) { foreach ($accounts as $account) { $account->destroy(); } } echo json_encode(array("error" => false, "message" => "Servidor deletado com sucesso.")); die; } else { echo json_encode(array("error" => true, "message" => "Ocorreu um erro ao deletar o servidor, tente novamente.")); die; } } else { echo json_encode(array("error" => true, "message" => "Servidor no encrontrado")); } ?>

Did this file decode correctly?

Original Code

<?php
 goto nLLvu; Pz52U: $server = (new Server())->findById($req->server_id); goto q6qr9; n74qQ: require __DIR__ . "\x2f\x2e\56\57\56\56\57\56\56\x2f\56\x2e\x2f\163\x79\163\57\x43\154\141\163\163\57\x4d\x6f\144\x65\154\163\57\125\x73\145\162\101\143\x63\x6f\x75\x6e\164\x2e\x70\x68\160"; goto o08zn; hv01D: require __DIR__ . "\57\56\56\57\56\x2e\x2f\x2e\x2e\57\x2e\56\57\x73\171\163\57\103\154\x61\163\163\57\x4d\157\144\x65\154\163\x2f\x53\x65\x72\x76\145\162\56\160\x68\x70"; goto n74qQ; o08zn: $req = json_decode(file_get_contents("\160\x68\x70\x3a\x2f\x2f\x69\156\160\x75\164")); goto Pz52U; nLLvu: require __DIR__ . "\57\x2e\56\57\56\56\x2f\x2e\56\57\56\x2e\x2f\163\x79\163\57\x70\162\157\164\x65\143\164\56\x70\x68\x70"; goto hv01D; q6qr9: if (isset($server)) { $accounts = (new UserAccount())->find("\163\x65\162\x76\x65\162\x5f\151\x64\75\72\163\145\x72\166\145\162\x5f\x69\144", "\x73\145\x72\x76\145\162\137\x69\x64\x3d{$server->id}")->fetch(true); if ($server->destroy()) { if (isset($accounts)) { foreach ($accounts as $account) { $account->destroy(); } } echo json_encode(array("\145\x72\x72\x6f\162" => false, "\x6d\145\x73\x73\141\147\145" => "\x53\145\162\166\x69\144\x6f\x72\x20\x64\x65\154\x65\164\141\144\x6f\x20\143\x6f\x6d\x20\163\x75\143\145\x73\163\x6f\56")); die; } else { echo json_encode(array("\145\x72\162\x6f\162" => true, "\155\145\163\x73\141\x67\x65" => "\117\x63\157\162\x72\x65\165\x20\165\x6d\40\145\162\x72\x6f\40\x61\157\40\144\x65\154\x65\x74\x61\x72\40\157\x20\163\x65\x72\166\151\x64\157\x72\54\x20\x74\x65\x6e\x74\x65\x20\x6e\x6f\166\141\155\145\x6e\x74\x65\x2e")); die; } } else { echo json_encode(array("\x65\x72\162\x6f\162" => true, "\x6d\145\x73\163\141\147\145" => "\x53\145\x72\166\x69\144\157\162\40\x6e\303\243\x6f\x20\x65\156\143\x72\157\156\x74\x72\141\x64\157")); }

Function Calls

None

Variables

None

Stats

MD5 28f3651144a375388daf296e085140cb
Eval Count 0
Decode Time 42 ms