Re: [libdnet-devel] Packet injection using libdnet?
Status: Abandoned
Brought to you by:
dugsong
|
From: Thamer Al-H. <tm...@wh...> - 2003-12-18 17:38:40
|
On Thu, 18 Dec 2003, Kifah A. wrote: > Well it seems with libnet i cannot use MAC adresses different than the > "real" MAC adresses of the machine i am injecting on > (libnet_build_ethernet)...which made me think of using libdnet somehow > for this....how should go with this problem? This isn't a problem. If you'd like some example code you can look at my dhcp suite: http://dhcp-agent.sf.net/ libdnet lets you MAC address spoof fine except for Mac OS X. Dug mentioned that it doesn't seem to work on that particular UNIX flavor. libdnet will happily write to an interface with no IP address. In fact a dhcp client implementation requires this. > Should build packets with libnet and inject them with libdnet? > Should i check out the whole code of the "dnet" binary? I don't know what advantages you get from libnet. Constructing your own packets is trivial. Building a stack to respond to packets is a little more work. [snip code] I haven't looked at your code. Mention an actual problem or bug and subscribers to this list would be happy to help. -- Thamer Al-Harbash GPG Key fingerprint: D7F3 1E3B F329 8DD5 FAE3 03B1 A663 E359 D686 AA1F |