From 256d3409d4e986fcf2b194f0e0efaf3c9656d510 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Mon, 13 Dec 2010 18:30:42 +0000 Subject: [PATCH] Fixes #3351. Suppress the warning message about pcaprub. It's not a big deal at all in Metasploit Note that while missing pcaprub is fine, loading the wrong versions of pcaprub is still not fine, and raises actual exceptions. git-svn-id: file:///home/svn/framework3/trunk@11319 4d416f70-5f16-0410-b530-b9f4589650da --- lib/packetfu.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/packetfu.rb b/lib/packetfu.rb index 87e772011b..aa1e1d81c4 100644 --- a/lib/packetfu.rb +++ b/lib/packetfu.rb @@ -37,7 +37,10 @@ module PacketFu require "packetfu/capture" require "packetfu/inject" else - warn "Warning: Missing pcaprub, cannot load PacketFu::Capture or PacketFu::Inject" + # At this moment, we don't care about missing pcaprub for PacketFu; we do need to deal + # with this eventually if we unseat Racket, but for now, PacketFu is just being used + # to read/write libpcap files, which doesn't require pcaprub. + # warn "Warning: Missing pcaprub, cannot load PacketFu::Capture or PacketFu::Inject" end end