From f5446b5d4fcc82bf766a2a99521dde13865577bb Mon Sep 17 00:00:00 2001 From: James Lee Date: Wed, 24 Feb 2010 21:46:18 +0000 Subject: [PATCH] add workspace to module run events git-svn-id: file:///home/svn/framework3/trunk@8626 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/framework.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/framework.rb b/lib/msf/core/framework.rb index a32bf35f04..8f1897b6dd 100644 --- a/lib/msf/core/framework.rb +++ b/lib/msf/core/framework.rb @@ -203,13 +203,13 @@ class FrameworkEventSubscriber include GeneralEventSubscriber def on_module_run(instance) if framework.db.active - datastore_hash = {} instance.datastore.keys.each do |k| datastore_hash[k.to_s] = instance.datastore[k].to_s end info = {} + info[:workspace] = framework.db.find_workspace(instance.workspace), info[:module_name] = instance.refname info[:datastore] = datastore_hash report_event(:name => "module_run", :info => info)