diff --git a/modules/post/multi/gather/dbvis_enum.rb b/modules/post/multi/gather/dbvis_enum.rb index 9b38acdb2b..a8eb27f305 100644 --- a/modules/post/multi/gather/dbvis_enum.rb +++ b/modules/post/multi/gather/dbvis_enum.rb @@ -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