HACKERS UNDERGROUND © 2012 BY RISHABH SHARMA

Wednesday, 27 July 2011

Self Destructing program in C

This program will destroy itself upon execution. The program will cause the .exe file to be deleted upon execution. That is this program is capable of destroying itself upon execution. Here is the code

#include
#include
#include
void main()
{
printf(“This program will destroy itself if u press any key!!!n”);
getch();
remove(_argv[0]);/*array of pointers to command line arguments*/
}


enjoy programing :)



0 comments:

Post a Comment

 
Design by HACKERS UNDERGROUND
HACKERS UNDERGROUND © 2012 BY RISHABH SHARMA