Wasn't sure where to put this, since it deals with routers and switches put it here.
For this, the cain part of cain and abel will be used. For those who don't have it, it can be downloaded here.
http://www.oxid.it/cain.html
Sniffing:
First, reconnaissance.
- Find the router this is usually a.b.c.1
- Find your target computer
- Start the sniffer and have Cain scan your segment. Cain can perform tests to see if the ip is a switch or router
- Watch the arp request interval, this will need to be set later.
Second, setup.
- Goto the apr tab under sniffer
- Hit the plus sign, select target computer and the router. Hit ok.
- Goto configure, hit use spoofed ip and mac address (if you are sniffing more than one computer this is smart, otherwise the MAC 00:11:22:33:44 looks suspicious.)
- Remember the arp requests, change poison arp caches to one less than the interval you recorded.
Third, Sniffing.
- Run ethereal or some other sniffer, start sniffing.
- Hit the poison icon (radiation looking thing in the bar).
- When your done stop poisoning.
Some uses other than sniffing:
- Basically the system poisoning acts as the the router between the two systems, a program can be created to change packets as they come through the system.
- Another use, cain has the option for it, APR-DNS. The system is in the middle, DNS requests can be intercepted, for example www.yahoo.com and route it to another system. This system could contain a fake webpage with a fake login that captures passwords.
-Session hijacking
Detection:
-One detection method is for those guys that are greedy, they want all the traffic.
The traffic will look like this from the router or switch side (If a sniffer is placed between the router or switch and the rest of the network this can be seen):
192.168.0.2 is at AA:BB:CC:DD:EE
192.168.0.3 is at AA:BB:CC:DD:EE
192.168.0.4 is at AA:BB:CC:DD:EE
192.168.0.5 is at AA:BB:CC:DD:EE
192.168.0.6 is at AA:BB:CC:DD:EE
192.168.0.7 is at AA:BB:CC:DD:EE
etc.
-if a MAC is 00:11:22:33:44. It's default with cain.
- If a computer is sending xxx.xxx.xxx.xxx is at AA:BB:CC:DD:EE constantly before being asked
-Multiple arp entries for one MAC EX: 192.168.0.3 @ AA:BB:CC:DD:EE and 192.168.0.4 @ AA:BB:CC:DD:EE
Possible location detection
The MAC and ip can be spoofed, but only within thier subnet. To find the attacker move the subnet till a place is found where the attack switches to the other side of the net. (This has not been tested just something I thought might work, if someone wants to test and reply please do)
If I missed anything or anything looks wrong feel free to point it out.
- Tyler Branch