Capturing network traffic in ruby - pcap related issues
What I need is to write very simple application, which would listen to network traffic, filter out some packets based on various layer 4/5 information and then dum开发者_如何学Gop those information into database.
I am quite confused on which pcap gem/plugin should I use. The basic pcap implemention seem to be a bit outdated (no changes since 2001) and doesn't work properly. I also tried pcaprub, but I am not quite sure how to get around with this library. It seem to capture raw packets without te ability to actualy get any data out of the pcap dump.
Do you have any advices on how can I realize this simple task?
Thanks in advance. :-)
Check out pcaprub - its used/maintained by the metasploit project:
svn checkout http://metasploit.com/svn/framework3/trunk/external/pcaprub/
Try xtractr: http://code.google.com/p/pcapr/wiki/Xtractr
精彩评论