Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../espo
File: getuid.php
<?php
[0] Fix | Delete
[1] Fix | Delete
$owner = function_exists('posix_getuid') ? posix_getuid() : 0;
[2] Fix | Delete
$group = function_exists('posix_getegid') ? posix_getegid() : 0;
[3] Fix | Delete
echo '\<owner>'.$owner.'</owner>';
[4] Fix | Delete
echo '\<group>'.$group.'</group>';
[5] Fix | Delete
[6] Fix | Delete
// this is to handle secret key generation
[7] Fix | Delete
$SecretKey = __generateSecretKey();
[8] Fix | Delete
echo '\<secretkey>'.$SecretKey.'</secretkey>';
[9] Fix | Delete
[10] Fix | Delete
function __generateSecretKey()
[11] Fix | Delete
{
[12] Fix | Delete
if (!function_exists('random_bytes')) {
[13] Fix | Delete
return uniqid() . substr(md5(rand()), 0, 4);
[14] Fix | Delete
}
[15] Fix | Delete
return bin2hex(random_bytes(16));
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
?>
[19] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function