pcaprub

This goal of this project is to provide a consistent interface to LBL’s libpcap packet capture library. This project was created because the currently available ruby-pcap library is poorly designed and has been unmaintained since

  1. This does not provide packet processing functionality, it simply provides

the interface for capturing packets. For packet processing capability, see the PacketRub project (packetrub.rubyforge.org).

Requirements:

libpcap - http://www.tcpdump.org

Installation

gem install pcaprub

Usage

require 'rubygems'
require 'pcaprub'

cap = Pcap.new

Current Repository for Gemcutter source

The Git Repo on Github @shadowbq is forked from the Metasploit SVN repo

git clone git://github.com/shadowbq/pcaprub.git

Notes on other repositories

The latest community svn version can be obtained from Subversion:

svn checkout http://pcaprub.rubyforge.org/svn/trunk/

The Metasploit Project also provides a Subversion repository:

svn checkout http://metasploit.com/svn/framework3/trunk/external/pcaprub/

(credits: github.com/dxoigmn/pcaprub)