开发者

Capturing network traffic in ruby - pcap related issues

开发者 https://www.devze.com 2022-12-24 03:48 出处:网络
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 in

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

0

精彩评论

暂无评论...
验证码 换一张
取 消