parse url to report host in old config

bug/bundler_fix
David Bloom 2014-07-15 14:21:09 +02:00
parent f3d953f829
commit 400b0f4276
1 changed files with 7 additions and 1 deletions

View File

@ -254,6 +254,12 @@ class Metasploit3 < Msf::Post
# Fill the tab
dbs.each do |db|
if (db[:Url] =~ /[\S+\s+]+[\/]+([\S+\s+]+):[\S+]+/i)
if ::Rex::Socket.is_ipv4?($1.to_s)
print_good("Reporting #{$1} ")
report_host(:host => $1.to_s);
end
end
db_table << [ db[:Alias] , db[:Type] , db[:Userid], db[:Url]]
end
return db_table