Click here to Skip to main content
15,916,318 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have write a packet sniffer program by SharpPcap module introduced in this web site.

I found when I capture TCP packet, I can know source IP address of the packet, but I don't know how to get source MAC and IP of PC who send a ARP spoofing packet captured by my sniffer.

Thanks
Posted
Comments
virusstorm 22-Apr-15 14:00pm    
I'm not an expert on this, but I know the ARP cache is managed by your router and or switch. I think you might be able to use the SNMP protocol to talk to your switches and routers to determine where the packet came from.
rr12 23-Apr-15 10:24am    
Hi virusstorm,

Thanks for your advice. But if the ARP spoofing packet's Source MAC and Source IP address are also not true, does it mean that looking for ARP cache has no help?
virusstorm 24-Apr-15 8:54am    
The switch maintains it's own ARP cache so it knows when traffic comes back, what port to send the traffic to. So even if the MAC and IP are spoofed, the switch knows what port the traffic originated from. So you can literally follow it back to the device that sent the traffic.
Florian Braun 22-Apr-15 16:13pm    
as you say spoofing is possible. but as arp is used to get an IP-adress for a MAC-adress spoofing makes only sense to fake an IP-adress to the MAC-adress of the "bad guy". So if you fear spoofing don't trust the IP, trust the MAC-adress.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900