Monday 9 January 2012

C program to create a computer virus

C language can be used to create a computer virus. The C code over here uses the dir.h and io.h header files to accomplish this task. The EXE file generated from this program when executed infects all the files that are present in the directory in which the EXE file is located. Now those files are ready to infect other files. It reads each file in the directory and infects it with a special virus code and thus infecting it. It first checks whether the file is already infected or not and then carries out its process.
WARNING : The code provided here is only for educational purposes. It is completely discouraged to use this code to do harm to any other computers. I am not at all responsible for any damage if caused due to misuse of this code

Click here to DOWNLOAD the C file from 4shared.com

No comments:

Post a Comment