Thursday 4 June 2015

Simple virus in c++ (memory eater)

  //Memory Eater 

#include<iostream.h>
#include<fstream.h>
#include<conio.h>

int main()
{
clrscr() ;

Long double Int *K=9999999;   //largest memory data type

ifstream fp;
fp.fopen("viral.dll",ios::in);

while(1)
fp>>*K;   //store value in file infinitely 

fp.close();

}

RUN this program you will notice that file will be created and it's size start increasing continously. 

By:-  KESHAV JOSHI