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 eval(base64_decode("ZGF0ZV9kZWZhdWx0X3RpbWV6b25lX3NldCgiQXNpYS9CYWdoZGFkIik7DQokaW5m..

Decoded Output download

<?php date_default_timezone_set("Asia/Baghdad");
$info = json_decode(file_get_contents('info.json'), true);
$token = file_get_contents("_token.txt");
define('API_KEY', $token);
function bot($method, $datas = []) {
    $SssQs = http_build_query($datas);
    $url = "https://api.telegram.org/bot" . API_KEY . "/" . $method . "?$SssQs";
    $SssBs = file_get_contents($url);
    return json_decode($SssBs);
}
if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
define('MADELINE_BRANCH', 'deprecated');
include 'madeline.php';
$settings['app_info']['api_id'] = 203088;
$settings['app_info']['api_hash'] = 'f360233d3627586775bd7298ee775bd1';
$MadelineProto = new \danog\MadelineProto\API('me.madeline', $settings);
$MadelineProto->start();
$uu = file_get_contents("users.txt");
if ($uu !== "") {
    $admin = file_get_contents('_group.txt');
    $type = file_get_contents('type');
    if ($type == "c") {
        $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => "a", 'about' => 'hi', ]);
    }
    $i = 0;
    $a = 0;
    $time = date('h:i');
    $year = date("Y/m/d");
    bot('sendmessage', ['chat_id' => $admin, 'text' => " - I'm Run To $type. 
- date start ($year:$time) .", ]);
    while (1) {
        $u = explode("
", file_get_contents("users.txt"));
        foreach ($u as $user) {
            try {
                if ($type == "c") {
                    try {
                        $MadelineProto->messages->getPeerDialogs(['peers' => [$user]]);
                        $a++;
                    }
                    catch(Exception $e) {
                        $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $user]);
                        $MadelineProto->messages->sendMessage(['peer' => $updates['updates'][1], 'message' => "- UserName : { $user }
- Time : { $year:$time }
----------------------
 @AA9AA ~
 @VAAAA ~"]);
                        bot('sendmessage', ['chat_id' => $admin, 'text' => "- UserName : @$user
- loop $a .", ]);
                        exit;
                    }
                } elseif ($type == "a") {
                    try {
                        $MadelineProto->messages->getPeerDialogs(['peers' => [$user]]);
                        $a++;
                    }
                    catch(Exception $e) {
                        $MadelineProto->account->updateUsername(['username' => $user]);
                        bot('sendmessage', ['chat_id' => $admin, 'text' => "- UserName : @$user
- loop $a .", ]);
                    }
                }
            }
            catch(Exception $e) {
                $bc = str_replace("
$user", "", file_get_contents('users.txt'));
                file_put_contents("users.txt", $bc);
                bot('sendmessage', ['chat_id' => $admin, 'text' => "errorr @$user", ]);
            }
        }
    }
}

Did this file decode correctly?

Original Code

<?php eval(base64_decode("ZGF0ZV9kZWZhdWx0X3RpbWV6b25lX3NldCgiQXNpYS9CYWdoZGFkIik7DQokaW5mbyA9IGpzb25fZGVjb2RlKGZpbGVfZ2V0X2NvbnRlbnRzKCdpbmZvLmpzb24nKSx0cnVlKTsNCiR0b2tlbiA9IGZpbGVfZ2V0X2NvbnRlbnRzKCJfdG9rZW4udHh0Iik7DQpkZWZpbmUoJ0FQSV9LRVknLCR0b2tlbik7DQpmdW5jdGlvbiBib3QoJG1ldGhvZCwkZGF0YXM9W10pew0KICAgICRTc3NRcyA9IGh0dHBfYnVpbGRfcXVlcnkoJGRhdGFzKTsNCiAgICAgICAgJHVybCA9ICJodHRwczovL2FwaS50ZWxlZ3JhbS5vcmcvYm90Ii5BUElfS0VZLiIvIi4kbWV0aG9kLiI/JFNzc1FzIjsNCiAgICAgICAgJFNzc0JzID0gZmlsZV9nZXRfY29udGVudHMoJHVybCk7DQogICAgICAgIHJldHVybiBqc29uX2RlY29kZSgkU3NzQnMpOw0KfQ0KaWYgKCFmaWxlX2V4aXN0cygnbWFkZWxpbmUucGhwJykpew0KY29weSgnaHR0cHM6Ly9waGFyLm1hZGVsaW5lcHJvdG8ueHl6L21hZGVsaW5lLnBocCcsICdtYWRlbGluZS5waHAnKTsNCn0NCmRlZmluZSgnTUFERUxJTkVfQlJBTkNIJywgJ2RlcHJlY2F0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