Use Rex to check IPv4 instead of using resolv

bug/bundler_fix
sinn3r 2014-07-14 14:56:38 -05:00
parent b5e556519b
commit 3b6947c1d7
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@
require 'msf/core'
require 'msf/core/auxiliary/report'
require "resolv"
class Metasploit3 < Msf::Post
@ -125,7 +124,7 @@ class Metasploit3 < Msf::Post
# print out
dbs.each do |db|
if (!!(db[:Server] =~ Resolv::IPv4::Regex))
if ::Rex::Socket.is_ipv4?(db[:Server].to_s)
print_good("Reporting #{db[:Server]} ")
report_host(:host => db[:Server]);
end