parse url to report host in old config
parent
f3d953f829
commit
400b0f4276
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue