From 77c86a24066126997c33ae10383fabbb6f29a794 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 5 Oct 2011 15:31:56 +0000 Subject: [PATCH] Fix a couple cosmetic warnings git-svn-id: file:///home/svn/framework3/trunk@13818 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/exploit/capture.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/core/exploit/capture.rb b/lib/msf/core/exploit/capture.rb index 0e17e8b8b0..0089fae6d3 100644 --- a/lib/msf/core/exploit/capture.rb +++ b/lib/msf/core/exploit/capture.rb @@ -420,7 +420,7 @@ module Exploit::Capture check_pcaprub_loaded if RUBY_PLATFORM == "i386-mingw32" if dev =~ /\\Device\\NPF_\{[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}\}/ - return Pcap.interfaces.include? dev + return Pcap.interfaces.include?(dev) elsif dev.to_s =~ /^[0-9]{1,2}$/ if (dev.to_i <= Pcap.interfaces.length) and (dev.to_i >= 0) return true @@ -431,7 +431,7 @@ module Exploit::Capture return false end else - return Pcap.interfaces.include? dev + return Pcap.interfaces.include?(dev) end end