Home » Virus Tutorials

A Self Destructing Program in C / C++

9 January 2007 No Comment

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.Heres the code

#include<stdio.h>
#include<conio.h>
#include<dos.h>
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*/
}

HOW TO COMPILE ?
Load the source code to the compiler and compile(press Alt-F9) and then press F9.This will generate the .exe file in the current directory(Bin directory).Execute this .exe file it will destroy itself upon execution.

Random Posts

Related posts:

  1. Create Make Virus Program To Disable USB Ports
  2. How To Create A Easy Computer Virus?
  3. A Virus Program To Restart The Computer At Every Startup
  4. Assign Specific Drive Letter to USB Drive
  5. A Virus Program To Block Websites
  6. How To Compile C Programs
  7. How to Format Nokia Symbian Mobile Phones in Simple Steps
  8. How to find PUK code of your SIM Card (Phone Number)

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.