Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../var/softacul.../presta14
File: update_rijndael.php
<?php
[0] Fix | Delete
[1] Fix | Delete
function __getkey(){
[2] Fix | Delete
[3] Fix | Delete
$key_size = mcrypt_get_key_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);
[4] Fix | Delete
$key = __passwdGen($key_size);
[5] Fix | Delete
[6] Fix | Delete
return $key;
[7] Fix | Delete
}
[8] Fix | Delete
[9] Fix | Delete
function __passwdGen($length = 8){
[10] Fix | Delete
[11] Fix | Delete
$str = 'abcdefghijkmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
[12] Fix | Delete
for ($i = 0, $passwd = ''; $i < $length; $i++)
[13] Fix | Delete
$passwd .= substr($str, mt_rand(0, strlen($str) - 1), 1);
[14] Fix | Delete
return $passwd;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
function __getiv(){
[18] Fix | Delete
[19] Fix | Delete
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);
[20] Fix | Delete
$iv = base64_encode(mcrypt_create_iv($iv_size, MCRYPT_RAND));
[21] Fix | Delete
[22] Fix | Delete
return $iv;
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
$rijndael_iv = __getiv();
[26] Fix | Delete
$rijndael_key = __getkey();
[27] Fix | Delete
[28] Fix | Delete
echo $rijndael_iv.'SOFTACULOUS'.$rijndael_key;
[29] Fix | Delete
[30] Fix | Delete
@unlink('update_rijndael.php');
[31] Fix | Delete
[32] Fix | Delete
?>
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function