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 class Bot { public $XUnAc; public $SwDou; public $Kq7E_; public $X29qd; public $..

Decoded Output download

<?php 
 
 class Bot { public $XUnAc; public $SwDou; public $Kq7E_; public $X29qd; public $WpQ3T; public $ih2U4; public $file; public $QPNt4; public $zEV1u; public $Y28CS; public $zSkVv; public $kYZXE; public $y_nPm = "/certs/certbot"; private $joXQL; public $Boa0N; public function __construct() { goto ZsHpz; rsXfE: $this->kYZXE = "en"; goto UKXIB; OaPRo: $this->X29qd = $this->sql("select param, value from language", view: "uniq"); goto v1u4F; yddcs: $this->zEV1u = getenv("DBPORT"); goto rsXfE; UKXIB: $this->ih2U4 = 5; goto OaPRo; vfRJX: $this->file = "https://api.telegram.org/file/bot{$this->joXQL["key"]}/"; goto Fnjsq; Fnjsq: $this->QPNt4 = getenv("IP"); goto yddcs; ZsHpz: $this->joXQL = ["key" => "7117338483:AAEuvlaWR3XmDdTpSluDZ9s31He60NgUW3E", "admin" => "278571710"]; goto xgLVk; xgLVk: $this->Y28CS = "https://api.telegram.org/bot{$this->joXQL["key"]}/"; goto vfRJX; v1u4F: } public function input() { goto zvrT5; zvrT5: if ("POST" == $_SERVER["REQUEST_METHOD"] && $_GET["k"] == $this->joXQL["key"]) { goto lPp_2; } goto pP45_; pP45_: header("500", true, 500); goto BrM0z; Rc3Ut: $this->SwDou = $input = json_decode(file_get_contents("php://input"), true); goto Ce71Z; R169h: $this->session(); goto sv5Ug; sv5Ug: $this->action(); goto M21ki; E0Rhm: lPp_2: goto Rc3Ut; NWNX6: $this->auth(); goto R169h; BrM0z: exit; goto E0Rhm; M21ki: $this->callbackCheck(); goto wUqSD; Ce71Z: $this->XUnAc = ["bot" => $input["message"]["from"]["is_bot"] ?? false, "pinned" => $input["message"]["pinned_message"] ?? false, "message" => $input["callback_query"]["message"]["text"] ?? $input["message"]["text"] ?? $input["channel_post"]["text"] ?? $input["message"]["caption"] ?? '', "message_id" => $input["callback_query"]["message"]["message_id"] ?? $input["message"]["message_id"] ?? $input["channel_post"]["message_id"], "chat" => $input["message"]["chat"]["id"] ?? $input["callback_query"]["message"]["chat"]["id"] ?? $input["channel_post"]["chat"]["id"] ?? $input["my_chat_member"]["chat"]["id"], "from" => $input["message"]["from"]["id"] ?? $input["inline_query"]["from"]["id"] ?? $input["callback_query"]["from"]["id"] ?? $input["channel_post"]["chat"]["id"] ?? $input["my_chat_member"]["from"]["id"] ?? $input["pre_checkout_query"]["from"]["id"], "username" => $input["message"]["from"]["first_name"] ?? $input["inline_query"]["from"]["first_name"] ?? $input["callback_query"]["from"]["first_name"], "forum" => $input["message"]["message_thread_id"] ?? '', "query" => $input["inline_query"]["query"] ?? '', "inlid" => $input["inline_query"]["id"] ?? '', "group" => in_array($input["message"]["chat"]["type"], ["group", "supergroup"]), "sticker_id" => $input["message"]["sticker"]["file_id"] ?? false, "channel" => !empty($input["channel_post"]["message_id"]), "callback" => $input["callback_query"]["data"] ?? false, "callback_id" => $input["callback_query"]["id"] ?? false, "pre_checkout_id" => $input["pre_checkout_query"]["id"] ?? false, "invoice_payload" => $input["pre_checkout_query"]["invoice_payload"] ?? false, "payment_payload" => $input["message"]["successful_payment"]["invoice_payload"] ?? false, "payment_amount" => $input["message"]["successful_payment"]["total_amount"] ?? false, "photo" => $input["message"]["photo"] ?? false, "file_name" => $input["message"]["document"]["file_name"] ?? false, "file_id" => $input["message"]["document"]["file_id"] ?? $input["message"]["photo"][0]["file_id"] ?? false, "caption" => $input["message"]["caption"] ?? false, "reply" => $input["message"]["reply_to_message"]["message_id"] ?? false, "reply_from" => $input["message"]["reply_to_message"]["from"]["id"] ?? $input["callback_query"]["message"]["reply_to_message"]["from"]["id"] ?? false, "reply_text" => $input["message"]["reply_to_message"]["text"] ?? false, "new_member_id" => $input["my_chat_member"]["new_chat_member"]["user"]["id"] ?? false, "new_member_status" => $input["my_chat_member"]["new_chat_member"]["status"] ?? false, "entities" => $input["message"]["entities"] ?? $input["message"]["caption_entities"] ?>

Did this file decode correctly?

Original Code

<?php

 class Bot { public $XUnAc; public $SwDou; public $Kq7E_; public $X29qd; public $WpQ3T; public $ih2U4; public $file; public $QPNt4; public $zEV1u; public $Y28CS; public $zSkVv; public $kYZXE; public $y_nPm = "\57\x63\x65\x72\164\x73\57\x63\x65\x72\x74\142\x6f\164"; private $joXQL; public $Boa0N; public function __construct() { goto ZsHpz; rsXfE: $this->kYZXE = "\x65\156"; goto UKXIB; OaPRo: $this->X29qd = $this->sql("\x73\x65\154\145\143\x74\40\160\x61\162\x61\155\54\40\166\141\x6c\165\145\40\146\x72\157\x6d\x20\154\x61\156\147\x75\x61\x67\145", view: "\x75\x6e\x69\161"); goto v1u4F; yddcs: $this->zEV1u = getenv("\104\x42\120\x4f\x52\124"); goto rsXfE; UKXIB: $this->ih2U4 = 5; goto OaPRo; vfRJX: $this->file = "\150\164\164\x70\163\72\x2f\57\x61\160\151\x2e\x74\145\x6c\x65\147\x72\x61\x6d\x2e\x6f\x72\x67\57\x66\x69\x6c\x65\x2f\142\x6f\164{$this->joXQL["\x6b\x65\171"]}\x2f"; goto Fnjsq; Fnjsq: $this->QPNt4 = getenv("\x49\x50"); goto yddcs; ZsHpz: $this->joXQL = ["\x6b\145\171" => "\67\x31\61\67\63\x33\70\x34\70\63\x3a\101\101\105\x75\x76\x6c\141\x57\x52\x33\x58\x6d\x44\x64\124\x70\x53\x6c\x75\x44\132\71\x73\x33\x31\110\145\x36\x30\116\x67\125\x57\63\x45", "\x61\x64\155\x69\x6e" => "\62\67\x38\65\x37\61\67\x31\x30"]; goto xgLVk; xgLVk: $this->Y28CS = "\x68\164\164\x70\x73\72\x2f\x2f\x61\x70\x69\x2e\x74\145\154\x65\147\162\141\155\x2e\157\162\x67\57\x62\157\164{$this->joXQL["\x6b\x65\x79"]}\57"; goto vfRJX; v1u4F: } public function input() { goto zvrT5; zvrT5: if ("\x50\x4f\x53\124" == $_SERVER["\x52\x45\121\x55\x45\x53\x54\137\x4d\105\x54\x48\x4f\x44"] && $_GET["\x6b"] == $this->joXQL["\x6b\145\x79"]) { goto lPp_2; } goto pP45_; pP45_: header("\x35\60\x30", true, 500); goto BrM0z; Rc3Ut: $this->SwDou = $input = json_decode(file_get_contents("\x70\150\x70\x3a\57\x2f\x69\156\x70\165\x74"), true); goto Ce71Z; R169h: $this->session(); goto sv5Ug; sv5Ug: $this->action(); goto M21ki; E0Rhm: lPp_2: goto Rc3Ut; NWNX6: $this->auth(); goto R169h; BrM0z: exit; goto E0Rhm; M21ki: $this->callbackCheck(); goto wUqSD; Ce71Z: $this->XUnAc = ["\x62\x6f\x74" => $input["\155\145\x73\x73\141\x67\x65"]["\x66\162\157\155"]["\151\x73\x5f\x62\157\164"] ?? false, "\x70\x69\156\x6e\x65\144" => $input["\x6d\145\163\x73\141\147\x65"]["\x70\151\x6e\156\x65\x64\137\155\145\x73\x73\141\147\x65"] ?? false, "\155\145\x73\163\x61\147\x65" => $input["\143\141\154\x6c\142\141\143\153\x5f\x71\x75\145\162\x79"]["\155\x65\163\x73\x61\147\145"]["\x74\x65\170\x74"] ?? $input["\x6d\x65\x73\x73\x61\147\x65"]["\164\x65\170\164"] ?? $input["\143\x68\x61\x6e\x6e\x65\154\x5f\x70\157\163\x74"]["\x74\145\170\164"] ?? $input["\155\145\163\x73\x61\x67\145"]["\x63\141\160\x74\x69\157\156"] ?? '', "\155\x65\x73\163\x61\147\x65\x5f\x69\144" => $input["\143\141\x6c\x6c\142\x61\143\x6b\137\x71\x75\x65\x72\x79"]["\155\145\x73\x73\141\147\145"]["\155\145\163\163\141\x67\x65\137\151\x64"] ?? $input["\155\145\x73\x73\141\x67\x65"]["\155\x65\x73\x73\x61\x67\145\137\x69\144"] ?? $input["\143\150\x61\x6e\156\x65\154\x5f\x70\x6f\163\x74"]["\155\x65\163\x73\141\147\145\137\x69\144"], "\x63\x68\x61\164" => $input["\155\x65\x73\x73\141\x67\145"]["\x63\150\141\164"]["\x69\144"] ?? $input["\143\x61\154\x6c\142\141\x63\153\x5f\161\165\x65\x72\x79"]["\x6d\145\163\x73\x61\x67\145"]["\143\x68\141\164"]["\x69\144"] ?? $input["\143\x68\x61\156\156\145\x6c\x5f\x70\x6f\x73\164"]["\143\150\141\164"]["\x69\x64"] ?? $input["\x6d\x79\137\x63\x68\141\164\137\155\145\155\142\145\x72"]["\x63\x68\141\x74"]["\151\x64"], "\x66\x72\x6f\x6d" => $input["\155\145\x73\x73\x61\x67\145"]["\146\x72\x6f\155"]["\x69\144"] ?? $input["\151\x6e\154\151\156\145\x5f\x71\165\145\x72\171"]["\146\x72\157\x6d"]["\x69\x64"] ?? $input["\x63\x61\154\154\x62\x61\143\153\x5f\161\x75\145\162\x79"]["\146\x72\157\155"]["\151\144"] ?? $input["\x63\x68\141\156\x6e\145\x6c\137\160\x6f\163\x74"]["\143\150\x61\x74"]["\x69\x64"] ?? $input["\x6d\x79\x5f\143\150\141\x74\x5f\x6d\x65\155\142\x65\x72"]["\x66\162\157\x6d"]["\151\x64"] ?? $input["\160\162\x65\137\143\x68\x65\143\x6b\x6f\x75\x74\x5f\x71\165\145\162\x79"]["\x66\162\157\x6d"]["\x69\x64"], "\165\163\x65\162\156\x61\x6d\145" => $input["\155\145\x73\x73\141\147\x65"]["\x66\162\157\x6d"]["\x66\151\162\163\x74\x5f\x6e\x61\155\x65"] ?? $input["\x69\x6e\x6c\x69\x6e\145\x5f\161\x75\x65\162\171"]["\x66\x72\157\x6d"]["\146\151\162\163\x74\x5f\156\141\155\x65"] ?? $input["\x63\x61\154\154\142\x61\143\x6b\137\161\x75\145\x72\171"]["\146\x72\157\155"]["\x66\x69\162\163\x74\x5f\x6e\141\x6d\x65"], "\146\157\x72\165\155" => $input["\155\145\x73\163\x61\147\x65"]["\x6d\145\163\x73\141\x67\145\x5f\164\150\x72\x65\141\x64\x5f\151\x64"] ?? '', "\x71\165\145\x72\171" => $input["\x69\x6e\154\151\156\x65\137\161\165\x65\x72\x79"]["\161\x75\x65\x72\171"] ?? '', "\151\156\154\151\144" => $input["\x69\156\154\151\156\145\x5f\x71\165\145\162\171"]["\x69\144"] ?? '', "\x67\162\x6f\165\160" => in_array($input["\x6d\145\163\163\x61\147\145"]["\143\150\x61\x74"]["\164\x79\160\x65"], ["\x67\162\x6f\x75\x70", "\x73\x75\160\x65\x72\x67\162\x6f\165\x70"]), "\x73\164\151\x63\x6b\145\162\x5f\151\144" => $input["\x6d\x65\x73\163\141\147\x65"]["\163\164\x69\x63\x6b\145\162"]["\x66\151\154\x65\137\151\x64"] ?? false, "\x63\150\x61\x6e\x6e\x65\154" => !empty($input["\143\x68\141\156\x6e\145\x6c\137\160\x6f\163\164"]["\155\x65\163\x73\x61\x67\x65\x5f\x69\x64"]), "\143\x61\x6c\x6c\x62\x61\x63\153" => $input["\143\x61\154\154\142\x61\143\x6b\x5f\x71\165\x65\x72\171"]["\x64\x61\164\141"] ?? false, "\143\141\x6c\x6c\142\141\x63\x6b\137\151\144" => $input["\x63\x61\154\x6c\142\x61\143\x6b\x5f\x71\x75\x65\x72\x79"]["\151\144"] ?? false, "\x70\162\x65\137\x63\150\145\143\153\157\165\x74\x5f\151\144" => $input["\x70\162\x65\137\x63\x68\145\143\153\x6f\x75\164\137\x71\165\x65\162\x79"]["\151\144"] ?? false, "\x69\x6e\166\157\x69\143\145\x5f\x70\x61\171\x6c\x6f\141\144" => $input["\x70\162\145\x5f\x63\x68\145\x63\153\157\165\x74\137\x71\165\x65\x72\171"]["\151\156\166\157\x69\x63\145\137\160\141\171\154\157\141\144"] ?? false, "\160\141\171\x6d\145\x6e\x74\x5f\x70\141\171\154\x6f\x61\x64" => $input["\x6d\145\x73\163\x61\147\x65"]["\x73\x75\143\143\145\x73\163\x66\x75\x6c\137\x70\x61\171\x6d\x65\156\x74"]["\151\x6e\x76\157\151\x63\x65\x5f\160\141\x79\x6c\x6f\141\144"] ?? false, "\x70\141\171\155\x65\x6e\164\137\x61\155\x6f\x75\x6e\x74" => $input["\155\x65\x73\x73\141\147\145"]["\163\x75\143\x63\x65\163\x73\146\x75\x6c\x5f\160\x61\x79\155\x65\x6e\164"]["\x74\x6f\x74\141\154\x5f\x61\155\x6f\165\x6e\x74"] ?? false, "\x70\150\x6f\x74\157" => $input["\155\x65\x73\163\x61\x67\x65"]["\160\x68\157\x74\157"] ?? false, "\x66\151\x6c\145\137\x6e\141\155\x65" => $input["\x6d\145\163\163\141\x67\x65"]["\144\x6f\143\165\x6d\145\156\x74"]["\x66\x69\x6c\x65\137\x6e\x61\x6d\145"] ?? false, "\x66\151\154\145\x5f\x69\144" => $input["\155\145\x73\163\x61\x67\145"]["\144\157\x63\x75\155\145\156\164"]["\x66\151\x6c\145\137\x69\144"] ?? $input["\x6d\x65\163\163\141\x67\145"]["\x70\x68\157\164\x6f"][0]["\146\x69\x6c\145\137\x69\144"] ?? false, "\x63\141\x70\x74\151\x6f\x6e" => $input["\155\145\163\163\141\147\x65"]["\143\x61\160\x74\151\x6f\156"] ?? false, "\162\145\x70\154\171" => $input["\155\145\x73\163\141\147\145"]["\162\145\160\x6c\x79\x5f\x74\x6f\x5f\x6d\x65\x73\163\141\x67\x65"]["\x6d\x65\163\x73\x61\147\145\x5f\151\x64"] ?? false, "\x72\x65\x70\x6c\171\x5f\x66\162\x6f\155" => $input["\x6d\x65\x73\x73\141\x67\x65"]["\162\x65\160\x6c\x79\x5f\164\157\137\155\145\x73\163\x61\147\x65"]["\146\x72\157\155"]["\151\x64"] ?? $input["\x63\x61\154\x6c\142\x61\143\x6b\137\161\x75\145\x72\x79"]["\x6d\x65\x73\163\141\x67\145"]["\162\145\160\x6c\x79\x5f\x74\157\x5f\155\145\x73\x73\141\x67\145"]["\x66\x72\x6f\155"]["\151\x64"] ?? false, "\162\x65\160\x6c\171\x5f\x74\145\170\164" => $input["\155\x65\x73\x73\141\147\x65"]["\x72\145\160\x6c\171\x5f\x74\x6f\x5f\155\145\x73\x73\141\147\x65"]["\x74\145\x78\x74"] ?? false, "\156\x65\x77\137\155\145\155\x62\145\162\137\x69\144" => $input["\155\x79\137\143\x68\141\164\x5f\x6d\x65\x6d\x62\145\x72"]["\156\x65\x77\137\143\x68\141\x74\137\155\x65\155\142\145\162"]["\x75\163\145\x72"]["\x69\x64"] ?? false, "\x6e\145\x77\x5f\x6d\145\155\142\145\x72\x5f\x73\x74\141\164\x75\x73" => $input["\x6d\x79\x5f\x63\150\x61\164\137\x6d\x65\155\142\x65\x72"]["\x6e\x65\167\137\x63\150\x61\x74\x5f\155\145\155\142\x65\x72"]["\x73\164\141\x74\x75\x73"] ?? false, "\145\x6e\164\x69\x74\x69\145\x73" => $input["\x6d\x65\x73\x73\141\147\145"]["\145\156\164\x69\x74\151\145\163"] ?? $input["\x6d\x65\163\163\141\147\145"]["\x63\x61\x70\164\x69\x6f\156\137\145\x6e\x74\151\x74\151\x65\163"]

Function Calls

None

Variables

None

Stats

MD5 f60dd0a1c4dcc7f99425b1e8675c1d8a
Eval Count 0
Decode Time 55 ms