Registry / networking / pcaprub

pcaprub

JSON →
library0.13.3rbrubygemsunverified

libpcap bindings for Ruby 2.x, enabling packet capture and network analysis.

gem install pcaprub
INSTALL
IMPORT
SIG · PCAPRUB
P
pcaprub
networkingrubyv0.13.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PCAPRUB
require 'pcaprub'

Capture network packets from an interface

require 'pcaprub' cap = PCAPRUB::Pcap.open_live('eth0', 65535, true, 1000) cap.each_packet do |pkt| puts pkt end
Debug
Known issues
gotchaRequires libpcap development headers to be installed
fix
Install libpcap-dev (Linux) or WinPcap/Npcap (Windows) before installing the gem
affects: >= 0
Upgrade
Version history
0.13.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pcaprub — gem install pcaprub · libregistry