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