1
votes

I install the packetfu gem, and have saw the example and test (partly) but I still don't understand how can I send a frame into the network. I just see the example manipulate a ethernet frame and write it to a pcap file, that's not what I want.

I would like to just use the Ethernet method and a way to send a Ethernet frame into network. The flowing protocal details I prefer to implement by myself.

Of course if Ruby did get a library or gem for 801.x protocol, I will be too happy to hear your recommandation.

Thanks in advance.

Well, the tag tips inspired me and I Googled about raw-ethernet by Ruby and found this http://blog.mudynamics.com/2007/12/04/ruby-tuntap-interface/ I think it's inspiring !

1

1 Answers

2
votes

I've never used packetfu, but I've found Ruby's socket interface very straightforward and easy to use. Best of all, no gems to install or keep updated, since it is a standard library, and all you need to do to use it it to require it. If what you require is simply reading/injecting ethernet frames, at least on Linux, it is fairly simple.