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 owz7_; rvtw1: require __DIR__ . "\x2f\56\56\57\x2e\56\x2f\x2e\56\x2f\x2e\x2e\..

Decoded Output download

<?php 
 goto owz7_; rvtw1: require __DIR__ . "/../../../../sys/Class/Models/Bot.php"; goto R6Y0Z; tYo1k: file_get_contents("https://api.telegram.org/bot{$bot->token}/deleteWebhook"); goto D72b8; KBxLg: if (isset($bot)) { $accounts = (new UserAccount())->find("bot_id =:bot_id", "bot_id={$bot->id}")->fetch(true); if (isset($accounts)) { foreach ($accounts as $item) { $item->destroy(); } } $purchases = (new Purchase())->find("bot_id =:bot_id", "bot_id={$bot->id}")->fetch(true); if (isset($purchases)) { foreach ($purchases as $item) { $item->destroy(); } } } goto tYo1k; owz7_: require __DIR__ . "/../../../../sys/protect.php"; goto tEC1Z; Ms4HD: require __DIR__ . "/../../../../sys/Class/Models/Purchase.php"; goto rvtw1; tEC1Z: require __DIR__ . "/../../../../sys/Class/Models/UserAccount.php"; goto Ms4HD; R6Y0Z: $req = json_decode(file_get_contents("php://input")); goto w_yLo; w_yLo: $bot = (new Bot())->findById($req->bot_id); goto KBxLg; D72b8: if ($bot->destroy()) { echo json_encode(array("error" => false, "message" => "Bot deletado com sucesso!")); } else { echo json_encode(array("error" => true, "message" => $bot->fail()->getMessage())); } ?>

Did this file decode correctly?

Original Code

<?php
 goto owz7_; rvtw1: require __DIR__ . "\x2f\56\56\57\x2e\56\x2f\x2e\56\x2f\x2e\x2e\57\163\x79\163\57\x43\154\x61\x73\x73\x2f\115\157\x64\x65\154\x73\x2f\102\x6f\164\56\160\x68\160"; goto R6Y0Z; tYo1k: file_get_contents("\150\164\x74\160\x73\72\x2f\57\x61\x70\x69\56\164\145\x6c\x65\x67\x72\x61\x6d\x2e\157\162\147\57\x62\x6f\x74{$bot->token}\57\144\x65\x6c\x65\164\x65\x57\x65\142\150\157\x6f\x6b"); goto D72b8; KBxLg: if (isset($bot)) { $accounts = (new UserAccount())->find("\142\157\x74\137\x69\144\x20\75\x3a\x62\x6f\x74\137\151\144", "\x62\157\164\137\x69\x64\75{$bot->id}")->fetch(true); if (isset($accounts)) { foreach ($accounts as $item) { $item->destroy(); } } $purchases = (new Purchase())->find("\x62\x6f\x74\137\151\144\x20\x3d\x3a\x62\157\x74\x5f\x69\144", "\x62\x6f\x74\x5f\151\x64\75{$bot->id}")->fetch(true); if (isset($purchases)) { foreach ($purchases as $item) { $item->destroy(); } } } goto tYo1k; owz7_: require __DIR__ . "\57\x2e\x2e\57\x2e\x2e\x2f\56\x2e\x2f\56\56\x2f\x73\171\163\x2f\160\162\x6f\164\x65\x63\164\56\160\x68\160"; goto tEC1Z; Ms4HD: require __DIR__ . "\57\56\x2e\x2f\56\x2e\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x73\x79\x73\x2f\103\154\x61\x73\x73\57\115\157\x64\145\154\163\x2f\120\165\x72\x63\150\x61\163\145\56\160\150\x70"; goto rvtw1; tEC1Z: require __DIR__ . "\57\56\56\x2f\56\x2e\x2f\56\x2e\57\56\56\57\163\x79\x73\x2f\103\x6c\141\x73\163\57\115\157\x64\x65\154\163\x2f\125\x73\145\x72\101\x63\143\x6f\x75\x6e\164\56\160\150\x70"; goto Ms4HD; R6Y0Z: $req = json_decode(file_get_contents("\160\150\160\x3a\x2f\57\151\156\160\x75\x74")); goto w_yLo; w_yLo: $bot = (new Bot())->findById($req->bot_id); goto KBxLg; D72b8: if ($bot->destroy()) { echo json_encode(array("\x65\x72\162\157\x72" => false, "\x6d\145\163\163\x61\x67\145" => "\102\157\x74\x20\144\145\154\x65\164\x61\144\x6f\40\143\x6f\x6d\x20\163\165\143\x65\163\x73\157\x21")); } else { echo json_encode(array("\x65\x72\162\157\162" => true, "\x6d\x65\163\163\x61\147\145" => $bot->fail()->getMessage())); }

Function Calls

None

Variables

None

Stats

MD5 b7db713e9da0c2aaaaf69cebd2a7ffa7
Eval Count 0
Decode Time 40 ms