A Self Destructing Program in C
Submitted by Srikanth on Saturday, 1 March 200814 Comments
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.
Popularity: 2% [?]
Visitors who read this post, also read:
By using/following this site you agree to our Legal Disclaimer
i donot understand remove(_argv[0])
Whenever we run any program the element _argv[0] (array of ptrs to command line arguments) contains the name of the program itself.For eg: If we are running a program(.exe file) whose name is “sample.exe” then the _argv[0] would contain this name.That is why we are passing _argv[0](nothing but the name of the program) as an argument to remove() function which will delete itsef eventually
hi,
i am bharadwaj and i want to destroy orkut account with a simple program is there any posibility pls
check it
@ Bharadwaj
Are you joking? It’s not possible yaar…
i didn’t get it. do i need to copy and paste this code and save in any format . will i be runnig it later or wat?????? pls help me m confused
Pls reply ASAP
@ josh
Copy and paste the code to a notepad. Rename the extension from .txt to .C, now compile it to get an executable(.exe file). Now if you execute/run this file it’ll destroy itself upon execution.
hi frnd………from which website,i can free download jdk1.6.0_02????????
@ abhishek
You can download it from sun microsystem’s site… or search it on google.
Mr.srikanth….er!!!rather Mr. bardwaj it is possible to delete orkut account u wish after having access…this cat be done easily by making a trojan …bypassing firewall….stealing data frm secure connection…not easy man…keep learning…and ur space filler…its beaten…kaspersky don’t let it execute if self defence is enabled…one thing more…a virus must be self replicating thus urs is only a mere pro….for more info ….read von nuemans self replication….keep it up man….njoy life
nice Shot SRIKANTH……io like ur work.i am beginer.and i m very Glad that u r helping others.Keep It up.my Prayers r with u.
hello srikanth….
would u plz submit a c coading that will delete a file(any extention) in my hard disk…
thnx…
Use of a program like this?
Like your site its self destructive
You’ve done a great job dude..
whats command line argument ??
srikanth
Leave your response!
EMAIL SECURITY »
How to Protect an Email Account from SPAM
Most of us get SPAM every day. Some of us get more and some little. Even a newly created email account will begin to receive spam just after a few days of it’s creation. Many times we …
NETWORK HACKS »
How to Find the IP Address of a Remote Computer
Most of you may be curious to know how to find the IP address of your friend’s computer or to find the IP address of the person with whom you are chatting in Yahoo messenger or Gtalk. …
PC SECURITY »
10 Tips for a Total Online Security
With the sudden rise in the Internet usage across the globe over the past few years, there has also been a rise in the amount of online scams and frauds. Today most of the Internet users are unaware …
VIRUS CREATION »
A Virus Program to Disable USB Ports
In this post I will show how to create a simple virus that disables/blocks the USB ports on the computer (PC). As usual I use my favorite C programming language to create this virus. Anyone with …
XP HACKS »
How to Make Invisible Password Protected Folder
Do you want to password protect your folder? Do you want to make it invisible so that it remains unnoticed by the normal users? Well here is a way to do that. In this post I …
Categories
Blogroll
Recent Comments
Most Commented
Most Popular
Log In | Entries (RSS) | Comments (RSS) | Sitemap | Arthemia Premium theme by Michael Jubel