Fix a couple cosmetic warnings

git-svn-id: file:///home/svn/framework3/trunk@13818 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-10-05 15:31:56 +00:00
parent b21acdaaae
commit 77c86a2406
1 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,7 @@ module Exploit::Capture
check_pcaprub_loaded check_pcaprub_loaded
if RUBY_PLATFORM == "i386-mingw32" 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}\}/ 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}$/ elsif dev.to_s =~ /^[0-9]{1,2}$/
if (dev.to_i <= Pcap.interfaces.length) and (dev.to_i >= 0) if (dev.to_i <= Pcap.interfaces.length) and (dev.to_i >= 0)
return true return true
@ -431,7 +431,7 @@ module Exploit::Capture
return false return false
end end
else else
return Pcap.interfaces.include? dev return Pcap.interfaces.include?(dev)
end end
end end