From f3edce86a1a16d9a5e803e755de29aedd5c27685 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Fri, 12 Feb 2010 17:37:20 +0000 Subject: [PATCH] Store module_run events as a hash git-svn-id: file:///home/svn/framework3/trunk@8465 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/framework.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/framework.rb b/lib/msf/core/framework.rb index 6b71f551f1..8bc9949d40 100644 --- a/lib/msf/core/framework.rb +++ b/lib/msf/core/framework.rb @@ -203,9 +203,15 @@ 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[:module_name] = instance.refname - info[:datastore] = instance.datastore + info[:datastore] = datastore_hash report_event(:name => "module_run", :info => info) end end