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 /* Coder = > @coderIQ */ ob_start(); $API_KEY = '7138782459:AAHx0FUYFVhf_fOtaW1..
Decoded Output download
<?php
/*
Coder = > @coderIQ
*/
ob_start();
$API_KEY = '7138782459:AAHx0FUYFVhf_fOtaW163jVWNey1atFuNe8';
echo "https://api.telegram.org/bot7138782459:AAHx0FUYFVhf_fOtaW163jVWNey1atFuNe8/setWebhook?url=https://51afb86a-635b-4406-a848-ae9abcbdcd7b-00-1j9c6x2oagg0.picard.replit.dev/index.php".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME'];
define('API_KEY',$API_KEY);
function bot($method,$datas=[]){
$url = "https://api.telegram.org/bot".API_KEY."/".$method;
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);
$res = curl_exec($ch);
if(curl_error($ch)){
var_dump(curl_error($ch));
}else{
return json_decode($res);
}
}
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$id = $message->from->id;
$chat_id = $message->chat->id;
$bot = '@'.bot('getme',['bot'])->result->username;
$text = $message->text;
$chat_id2 = $update->callback_query->message->chat->id;
$message_id = $update->callback_query->message->message_id;
$data = $update->callback_query->data;
$temp = json_decode(file_get_contents('temp.json'),true);
$msg = json_decode(file_get_contents('msgs.json'),true);
if ($message->photo or $message->document or $message->video or $message->voice or $message->audio) {
$text = $message->caption;
}
if ($text == '/us') {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>count($temp)
]);
}
if (!file_exists('temp.json')) {
file_put_contents("temp.json", '{}');
}if (!file_exists('msgs.json')) {
file_put_contents("msgs.json", '{"last":1}');
}
if ($text == '/start') {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
- + ",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>'- -','callback_data'=>'cr']],
[['text'=>' ','url'=>'t.me/b69bb5'],['text'=>' ','url'=>'t.me/b69bb5']],
]
])
]);
}
if ($data == 'cr') {
$temp[$chat_id2]['mode'] = 'head';
bot('editMessageText',[
'chat_id'=>$chat_id2,
'message_id'=>$message_id,
'text'=>"
- . . . "
]);
file_put_contents('temp.json', json_encode($temp));
}
if ($temp[$chat_id]['mode'] == 'head') {
if ($message->text) {
$temp[$chat_id]['type'] = 'text';
$temp[$chat_id]['text'] = $text;
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"- !",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>" ",'callback_data'=>'yes'],['text'=>"",'callback_data'=>"no"]]
]
])
]);
$temp[$chat_id]['mode'] = null;
file_put_contents('temp.json', json_encode($temp));
}
if ($message->photo) {
$temp[$chat_id]['type'] = 'photo';
$temp[$chat_id]['caption'] = $text;
$temp[$chat_id]['file_id'] = $message->photo[0]->file_id;
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"- !",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>" ",'callback_data'=>'yes'],['text'=>"",'callback_data'=>"no"]]
]
])
]);
$temp[$chat_id]['mode'] = null;
file_put_contents('temp.json', json_encode($temp));
}
if ($message->video) {
$temp[$chat_id]['type'] = 'video';
$temp[$chat_id]['caption'] = $text;
$temp[$chat_id]['file_id'] = $message->video->file_id;
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"- !",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>" ",'callback_data'=>'yes'],['text'=>"",'callback_data'=>"no"]]
]
])
]); ?>
Did this file decode correctly?
Original Code
<?php
/*
Coder = > @coderIQ
*/
ob_start();
$API_KEY = '7138782459:AAHx0FUYFVhf_fOtaW163jVWNey1atFuNe8';
echo "https://api.telegram.org/bot7138782459:AAHx0FUYFVhf_fOtaW163jVWNey1atFuNe8/setWebhook?url=https://51afb86a-635b-4406-a848-ae9abcbdcd7b-00-1j9c6x2oagg0.picard.replit.dev/index.php".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME'];
define('API_KEY',$API_KEY);
function bot($method,$datas=[]){
$url = "https://api.telegram.org/bot".API_KEY."/".$method;
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);
$res = curl_exec($ch);
if(curl_error($ch)){
var_dump(curl_error($ch));
}else{
return json_decode($res);
}
}
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$id = $message->from->id;
$chat_id = $message->chat->id;
$bot = '@'.bot('getme',['bot'])->result->username;
$text = $message->text;
$chat_id2 = $update->callback_query->message->chat->id;
$message_id = $update->callback_query->message->message_id;
$data = $update->callback_query->data;
$temp = json_decode(file_get_contents('temp.json'),true);
$msg = json_decode(file_get_contents('msgs.json'),true);
if ($message->photo or $message->document or $message->video or $message->voice or $message->audio) {
$text = $message->caption;
}
if ($text == '/us') {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>count($temp)
]);
}
if (!file_exists('temp.json')) {
file_put_contents("temp.json", '{}');
}if (!file_exists('msgs.json')) {
file_put_contents("msgs.json", '{"last":1}');
}
if ($text == '/start') {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
- + ",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>'- -','callback_data'=>'cr']],
[['text'=>' ','url'=>'t.me/b69bb5'],['text'=>' ','url'=>'t.me/b69bb5']],
]
])
]);
}
if ($data == 'cr') {
$temp[$chat_id2]['mode'] = 'head';
bot('editMessageText',[
'chat_id'=>$chat_id2,
'message_id'=>$message_id,
'text'=>"
- . . . "
]);
file_put_contents('temp.json', json_encode($temp));
}
if ($temp[$chat_id]['mode'] == 'head') {
if ($message->text) {
$temp[$chat_id]['type'] = 'text';
$temp[$chat_id]['text'] = $text;
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"- !",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>" ",'callback_data'=>'yes'],['text'=>"",'callback_data'=>"no"]]
]
])
]);
$temp[$chat_id]['mode'] = null;
file_put_contents('temp.json', json_encode($temp));
}
if ($message->photo) {
$temp[$chat_id]['type'] = 'photo';
$temp[$chat_id]['caption'] = $text;
$temp[$chat_id]['file_id'] = $message->photo[0]->file_id;
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"- !",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>" ",'callback_data'=>'yes'],['text'=>"",'callback_data'=>"no"]]
]
])
]);
$temp[$chat_id]['mode'] = null;
file_put_contents('temp.json', json_encode($temp));
}
if ($message->video) {
$temp[$chat_id]['type'] = 'video';
$temp[$chat_id]['caption'] = $text;
$temp[$chat_id]['file_id'] = $message->video->file_id;
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"- !",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>" ",'callback_data'=>'yes'],['text'=>"",'callback_data'=>"no"]]
]
])
]);
Function Calls
None |
Stats
MD5 | 04a5edf980fd67a2a8cefd89d48e7115 |
Eval Count | 0 |
Decode Time | 60 ms |