I am trying to build a winpcap application capable of sniff traffic of a target host within a switch-based LAN.
To carry out this, I am trying to perform a arp spoofing. This way, messages between the target host and the getaway will be sent through me, and then I'll be able to sniff them.
I know how the spoofing works, what arp packets I must send and how to send them. The problem comes with the forwarding stuff: By default, my machine is going to drop the packets upon arrival, because they’re not destined to my IP address.
I have read about IPEnableRouter Windows registry value, but I'd prefer some code to get it.
I have been using Java Wrapper libraries for WinPcap (jNetPcap、Jpcap) but I could use some other languaje. Both computers have Windows Vista installed.