Ir al contenido


Foto

Virus que infecta a delphi 7


  • Por favor identifícate para responder
36 respuestas en este tema

#21 egostar

egostar

    missing my father, I love my mother.

  • Administrador
  • 14.448 mensajes
  • LocationMéxico

Escrito 20 agosto 2009 - 09:50

Que curioso se ve que despues de ejecutarlo me muestre el nuevo archivo con varias horas de retraso :D :D :D

Directory of C:\downloads\seoane\CheckMd5\CheckMd5

20/08/2009  10:39    <DIR>          .
20/08/2009  10:39    <DIR>          ..
20/08/2009  16:53            7,887 CheckMd5.bdsproj
20/08/2009  16:53              286 CheckMd5.bdsproj.local
20/08/2009  16:53              450 CheckMd5.cfg
20/08/2009  16:53            2,279 CheckMd5.dpr
20/08/2009  16:53            99,328 CheckMd5.exe
20/08/2009  10:40          385,423 CheckMd5.txt
20/08/2009  16:53            3,882 Hashes.dcu
27/07/2008  21:10            3,832 Hashes.pas
              8 File(s)        503,367 bytes
              2 Dir(s)  29,586,247,680 bytes free


Bueno, pues lo ejecute y no (hizo,encontro) nada, que debia de mostrar?

C:\downloads\seoane\CheckMd5\CheckMd5>CheckMd5 /Check

C:\downloads\seoane\CheckMd5\CheckMd5>


Salud OS
  • 0

#22 seoane

seoane

    Advanced Member

  • Administrador
  • 1.259 mensajes
  • LocationEspaña

Escrito 20 agosto 2009 - 01:47

Bueno, pues lo ejecute y no (hizo,encontro) nada, que debia de mostrar?


Cuando lo ejecutas sin ningún parámetro crea el fichero CheckMd5.txt que contiene el hash md5 de todos los ficheros .pas y .dcu. Y cuando lo ejecutas con el parámetro /check comprueba el hash de los ficheros .pas y .dcu con los guardados en el paso anterior dentro del fichero CheckMd5.txt. Si encuentra un fichero modificado muestra un mensaje, de lo contrario no muestra nada.

Tiene dos posibles usos. Uno es crear el fichero con los hash justo después de instalar delphi y usar el parametro /check cuando necesitemos comprobar si los ficheros de delphi siguen intactos. Otro posible uso es comparar una instalación de delphi con otra, así­ si tienes delphi instalado en dos equipos diferentes puedes crear el fichero CheckMd5.txt en uno y usar el parametro /Check en el otro para comprobar que las dos instalaciones son iguales.

Espero que ahora me explicara bien  :embarrassed:


  • 0

#23 egostar

egostar

    missing my father, I love my mother.

  • Administrador
  • 14.448 mensajes
  • LocationMéxico

Escrito 20 agosto 2009 - 02:34

Ah ya, ahora comprendo

Si tuviera el virus ese no encontraria diferencia, ¿ es así­ ?

Salud OS
  • 0

#24 seoane

seoane

    Advanced Member

  • Administrador
  • 1.259 mensajes
  • LocationEspaña

Escrito 20 agosto 2009 - 02:39

Ah ya, ahora comprendo

Si tuviera el virus ese no encontraria diferencia, ¿ es así­ ?

Salud OS


Si cuando lo ejecutas por primera vez ya lo tienes, no lo podrí­as detectar, porque solo sirve para encontrar cambios.
  • 0

#25 eduarcol

eduarcol

    Advanced Member

  • Administrador
  • 4.483 mensajes
  • LocationVenezuela

Escrito 21 agosto 2009 - 07:05

Eso esta muy bueno cuando tengamos dudas si el Delphi ha sido dañado  :angry:
  • 0

#26 Caral

Caral

    Advanced Member

  • Moderador
  • PipPipPip
  • 4.266 mensajes
  • LocationCosta Rica

Escrito 21 agosto 2009 - 09:33

Hola
El virus me infecto.
Pregunto:
Si elimino delphi y lo vuelvo a instalar se arregla?.
Saludos
  • 0

#27 enecumene

enecumene

    Webmaster

  • Administrador
  • 7.419 mensajes
  • LocationRepública Dominicana

Escrito 21 agosto 2009 - 09:38

Hola
El virus me infecto.
Pregunto:
Si elimino delphi y lo vuelvo a instalar se arregla?.
Saludos


Pos sí­, pero no es necesario eliminar Delphi sólo debes cambiar la Unidad SysConst.dcu y SysConst.bak de la carpeta Lib y sustituirla por la original SysConst.pas, luego de eso, eliminar todos .exe que se hicieron con la infección y re-compilar los proyectos de nuevo, entonces así­ se resuelve.

Saludos.
  • 0

#28 Caral

Caral

    Advanced Member

  • Moderador
  • PipPipPip
  • 4.266 mensajes
  • LocationCosta Rica

Escrito 21 agosto 2009 - 09:39

Hola
Gracias amigo, donde estan esas SysConst.dcu y SysConst.bak y donde esta la original?
Saludos
  • 0

#29 enecumene

enecumene

    Webmaster

  • Administrador
  • 7.419 mensajes
  • LocationRepública Dominicana

Escrito 21 agosto 2009 - 09:44

Pos sí­, pero no es necesario eliminar Delphi sólo debes cambiar la Unidad SysConst.dcu y SysConst.bak de la carpeta Lib y sustituirla por la original SysConst.pas, luego de eso, eliminar todos .exe que se hicieron con la infección y re-compilar los proyectos de nuevo, entonces así­ se resuelve.

Saludos.


El amigo Wilson colocó una copia del SysConst.pas aquí­ en este mismo tema.

Saludos.
  • 0

#30 Wilson

Wilson

    Advanced Member

  • Moderadores
  • PipPipPip
  • 2.137 mensajes

Escrito 25 agosto 2009 - 07:37

Hola
El virus me infecto.
Pregunto:
Si elimino delphi y lo vuelvo a instalar se arregla?.
Saludos


Aquí­ unas buenas recomendaciones de MArco Cantu


Are you infected?
Other than checking if you have on your computer applications with the virus, or even an empty project you compile has it, to figure out if you are infected you can look into the lib folder of your Delphi 5, 6, or 7 installation (maybe also 4, some source mentioned 8, but that was the .NET version, so it doesn't pertain). In this folder you'll have a modified SysConst.dcu (but apparently with the same timestamp of the original) and a SysCont.bak, a backup copy of the original source code file. You can restore the proper SysConts.dcu from the original Delphi distribution disk (rather than reinstalling, you can copy the file from the installation image taht old versions used to offer right on the CD).

How to Prevent an Infection
Even if you cure your installation, you might have a program on your system (or downlaod a new one with the virus) that causes the same problem again. So beside curing the problem, even in case your system is not infected, you might want to prevent any future problem. I'm worried that so many news about this virus might push other developes to clone the idea!

As the virus has to compile itself into the DCU format, it calls the command line compiler, something most developers seldom use. So a very good solution to avoid the virus from attacking your Delphi is to move the your DCC32.EXE to another directory from the \bin directory of your Delphi installation , where the virus looks for it to compile the modified source code of the unit. A change in the source WITHOUT RECOMPILING will not activate the virus. Stopping the virus from finding the command line compiler in the first place is a very good defense about this and similar future threats.

Another option, very specific to how this virus behaves, is to add (or keep) the SysCont.bak file in the /lib folder. The virus in fact seems to look for this file to check if the system is already infected. If it is, it simply won't do anything.

A different line of defense, which is way more robust and will help you also in the future, is to prevent any application from writing in your lib folder without permission . This is probably already the case if you installed Delphi 7 on Windows Vista. Despite the fact you might dislike Windows file system protection and the User Account Control, a similar mechanism that prevents any program from modifying anything under Program Files would defeat any virus behaving like that. You can at least mark the dcu files in the lib folder readonly.

So it is partially true that newer versions of Delphi don't have a specific feature to prevent similar infections in the future, but the current version of the operating system has enough protection to prevent it. If you have Delphi 7 and run it on Vista, you might have to loosen the access permission to some folders (including the bin folder in which Delphi 6 and 7 write some of the desktop setting files). But if you have newer version of Delphi (since Delphi 2007) which is installed in a Vista friendly way, you can keep full permissions and UAC on and prevent changes to your compiler and library files. I generally don't even run Delphi itself as administrator, as it behaves fine with the standard user permissions, and this makes sure that even while using the IDE legitimately I cannot by mistake update one the the compiled system libraries.

Waiting for official Embarcadero guidlines, I hope this helps dispell some more myths and provide a couple of simple tricks from stopping the virus. In summary: move your command line compiler, pretend your system already has the virus, and protect your library folder from accidental or malicious changes .

The positive element of this mess is that it should raise awareness of developers about security, make people realize how much Delphi is used, make manager want to stay on more up-to-date versions, but the fear is it might damage Delphi reputation. Stay tuned for more information and spread the word to your fellow Delphi developers.



  • 0

#31 c0lo

c0lo

    Advanced Member

  • Miembro Platino
  • PipPipPip
  • 241 mensajes
  • LocationLima-Peru

Escrito 27 octubre 2009 - 10:01

Bueno por mala idea mia borre el dcu y dcu.bak del SysConst.pas.. como genero nuevamente o como creo el SysConst.dcu nuevamente?, si alguien tiene Delphi7 me lo puede pasar con la direccion donde debe estar guardada..

PD: sin virus porfa
  • 0

#32 poliburro

poliburro

    Advanced Member

  • Administrador
  • 4.945 mensajes
  • LocationMéxico

Escrito 27 octubre 2009 - 10:10

PD: sin virus porfa


:angel:  :cool:  :wink:
  • 0

#33 poliburro

poliburro

    Advanced Member

  • Administrador
  • 4.945 mensajes
  • LocationMéxico

Escrito 27 octubre 2009 - 10:15

bueno amigo no se si tenga o no virus pero aquí te mando el mio. :p

Archivos adjuntos


  • 0

#34 cHackAll

cHackAll

    Advanced Member

  • Administrador
  • 599 mensajes

Escrito 27 octubre 2009 - 10:23

Pero si es un virus bien tierno... de paso te deja el backup del archivo original :p solo lo renombran pisando el dcu y listo.
  • 0

#35 c0lo

c0lo

    Advanced Member

  • Miembro Platino
  • PipPipPip
  • 241 mensajes
  • LocationLima-Peru

Escrito 27 octubre 2009 - 11:19

Si ps pero de asustado que vi lo borre todo :( y no recordo lo que decia de solo renombrar el backup

Gracias :D
  • 0

#36 agag4

agag4

    Advanced Member

  • Miembros
  • PipPipPip
  • 298 mensajes
  • LocationMéxico

Escrito 27 septiembre 2011 - 12:16

Re-activando este tema, que buen susto me di con este virus tan tierno  (h) resulta que cada vez que compilaba me decia el nod32 que tenia virus, dije, donde pesque este virus, no me acuerdo de tantas paginas que abro  :embarrassed: , pero en fin, con solo borrar el sysconst.dcu y renombrar el .bak a sysconst.dcu con eso basta y recompilar nuestras aplicaciones infectadas.. que susto  ;) lo bueno que existe este foro muchas gracias  (b)
  • 0

#37 javsolis3

javsolis3

    Advanced Member

  • Moderadores
  • PipPipPip
  • 1.380 mensajes
  • LocationPanama

Escrito 27 septiembre 2011 - 02:53

8o| sin alarmas amigos busquemosle la solucion ustedes son los mejores.  (y)
  • 0




IP.Board spam blocked by CleanTalk.