Write to us: Click Here

Wednesday 14 March 2012

How To Perform DNS Poisoning attack




Hey guys Smile this Tutorial is about DNS poisoning on your network using Cain & Abel.

Download Cain here

This Tutorial Will be limited to just redirecting the traffic to another website.



Note: This Tutorial is for educational purposes only (you’ll be responsible for your own actions)





First What is the DNS ? (wikipedia.org)

The Domain Name System (DNS) is a hierarchical naming system for
computers, services, or any resource connected to the internet or a
private network. It associates various information with domain names
assigned to each of the participants. Most importantly, it translates
domain names meaningful to humans into the numerical (binary)
identifiers associated with networking equipment for the purpose of
locating and addressing these devices worldwide. An often used analogy
to explain the Domain Name System is that it serves as the "phone book"
for the Internet by translating human-friendly computer hostnames into
IP addresses. For example, http://www.example.com translates to 208.77.188.166.



What does poisoning the DNS allow us to do ?

It allows us to redirect the traffic to another website.



First This is the structure of the network :




1- 2 and 3 are computers



1 is the computer being the gateway (could be a router) (172.128.254.1)



2 is the target computer (172.128.254.10)



3 is the attacker using cain



Note : IPs are just used for this tutorial and chosen randomly.



Our work is on computer number 3.

__________________________________________________  ______



1-After you install cain , open it and go to the sniffer tab



2-Click on configure and choose your adapter

3-Enable the sniffer (click on the second icon in the toolbar next to the open icon) 



4-Right click in the empty area and choose scan MAC addresses. We get the results above. 



5-Click on the APR Tab 



6-Click on the + sign in the toolbar to add a new ARP poison routing 


7-Choose the gateway which is 172.128.254.1 , in the next list you’ll 
get the IP of the computer 2 which is 172.128.254.10 and click ok 





8-Now click on the APR-DNS tab


9-click on the + sign 



10-enter the web address that you want to spoof , (in this case when the 
user goes to facebook he’ll be redirected to myspace) click on resolve 
type the web address that you want to redirect the user to it, and click 
ok, and you’ll get the IP of the web address, then click ok 



you'll get something like this: 





11-now to make this work we have to enable APR poisoning , click on the
icon next to the sniffer icon, and everything should work as we expect.



Now the computer 2 will get the routes poisoned and when the user requests http://www.facebook.com he will be redirected to http://www.myspace.com .

Imagine what you can do with this technique.



I hope this was a good tutorial for you guys , and please leave your feedback.
     

-----------------------



2 Responses to “How To Perform DNS Poisoning attack”

Anonymous said...
17 March 2012 at 00:13

Man ive got issues with this, i tried this on my wireless network, did everything as u said, still its not working


w4r-b0y said...
17 March 2012 at 00:42

Hi anonymous,
Can u please explain at which step you are facing problem..??
so that i would be able to explain the step in detail and resolve the problem..

---------
w4r-b0y(admin)


Post a Comment

If you're having issues. Please leave an email address I can contact you on -
I advise you to also "subscribe to the comment feed" and get email updates when I respond to your question.

Hyperlinks are not allowed, Spam/advertising comments will NEVER BE TOLERATED and will be deleted immediately!

Thanks for reading,
Admin

All Rights Reserved Walk With-[Geeks]- by w4r-b0y
Special Thanx to Team Indishell and The Almighty Google