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 I_Cwv; vBfrD: $URL_ATUAL = $_SERVER["\110\124\x54\x50\137\110\x4f\x53\124"]; ..

Decoded Output download

<?php 
 goto I_Cwv; vBfrD: $URL_ATUAL = $_SERVER["HTTP_HOST"]; goto ZfEJw; iP2mp: $uname = isset($_GET["uname"]) ? $_GET["uname"] : ''; goto syX3i; ZfEJw: if (!$key) { $err = new stdClass(); $err->code = 404; $err->message = "API Not found"; echo json_encode($err); return; } goto Y03ez; I_Cwv: $key = isset($_GET["key"]) ? $_GET["key"] : ''; goto iP2mp; syX3i: header("Content-Type: application/json"); goto vBfrD; Y03ez: if ($key === "BIGODEDELLAS") { $dadosPayload = new stdClass(); $dadosPayload->status = "1"; $dadosPayload->expira = "2023-10-15 21:54:36
"; $dadosPayload->name = "Bigode"; $dadosPayload2 = new stdClass(); $dadosPayload2->qtd = "2"; $dadosPayload2->slot_1 = $URL_ATUAL; $dadosPayload2->slot_2 = $URL_ATUAL; echo json_encode($dadosPayload); echo "|"; echo json_encode($dadosPayload2); return; return; } else { $err = new stdClass(); $err->code = 404; $err->message = "forbidden you don't have permission to access / on this server"; echo json_encode($err); return; } goto XIc0D; XIc0D: ?>

Did this file decode correctly?

Original Code

<?php
 goto I_Cwv; vBfrD: $URL_ATUAL = $_SERVER["\110\124\x54\x50\137\110\x4f\x53\124"]; goto ZfEJw; iP2mp: $uname = isset($_GET["\x75\x6e\x61\x6d\145"]) ? $_GET["\165\x6e\x61\155\x65"] : ''; goto syX3i; ZfEJw: if (!$key) { $err = new stdClass(); $err->code = 404; $err->message = "\101\120\x49\40\x4e\157\x74\x20\x66\x6f\165\x6e\x64"; echo json_encode($err); return; } goto Y03ez; I_Cwv: $key = isset($_GET["\x6b\x65\171"]) ? $_GET["\153\145\171"] : ''; goto iP2mp; syX3i: header("\x43\x6f\x6e\164\x65\156\x74\x2d\x54\171\160\x65\x3a\x20\141\160\160\x6c\x69\x63\x61\x74\x69\x6f\x6e\57\x6a\x73\157\156"); goto vBfrD; Y03ez: if ($key === "\x42\x49\107\117\x44\x45\x44\105\114\x4c\x41\x53") { $dadosPayload = new stdClass(); $dadosPayload->status = "\61"; $dadosPayload->expira = "\x32\x30\62\63\55\61\60\x2d\61\x35\x20\62\x31\x3a\x35\64\x3a\63\x36\12"; $dadosPayload->name = "\x42\151\147\157\144\145"; $dadosPayload2 = new stdClass(); $dadosPayload2->qtd = "\62"; $dadosPayload2->slot_1 = $URL_ATUAL; $dadosPayload2->slot_2 = $URL_ATUAL; echo json_encode($dadosPayload); echo "\x7c"; echo json_encode($dadosPayload2); return; return; } else { $err = new stdClass(); $err->code = 404; $err->message = "\x66\x6f\162\x62\151\144\144\145\156\x20\x79\x6f\165\40\x64\157\x6e\47\x74\40\150\141\166\x65\x20\x70\145\x72\155\151\x73\x73\x69\x6f\156\40\164\x6f\x20\141\x63\143\145\163\x73\40\57\x20\157\156\x20\164\x68\151\x73\x20\163\x65\162\x76\x65\x72"; echo json_encode($err); return; } goto XIc0D; XIc0D: ?>

Function Calls

None

Variables

None

Stats

MD5 bd7a7522253c53d94243edae249f3cc4
Eval Count 0
Decode Time 45 ms