From cafb8d1ac226497a1bb44315609c14f8ea0d5d59 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 20 Oct 2010 01:13:26 +0000 Subject: [PATCH] Yield back on pages, vulns, forms, and sites git-svn-id: file:///home/svn/framework3/trunk@10760 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/db.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index df733c72c9..fd0557b045 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -2430,6 +2430,7 @@ class DBManager } report_web_site(info) + yield(:web_site, "#{info[:host]}:#{info[:port]} (#{info[:vhost]})") if block end %W{page form vuln}.each do |wtype| @@ -2475,6 +2476,8 @@ class DBManager end } self.send("report_web_#{wtype}", info) + + yield("web_#{wtype}".intern, info[:path]) if block end end end