From 38dbd1889ee278eb2391802f3f1eae7321d65612 Mon Sep 17 00:00:00 2001 From: William Vu Date: Thu, 19 Mar 2015 21:33:17 -0500 Subject: [PATCH] Fix report_note to use :data :note doesn't do what we want. --- lib/msf/ui/console/command_dispatcher/db.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index 0def78eaef..6a0295081f 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -224,7 +224,7 @@ class Db rw.each do |ip| id = framework.db.get_host(:address => ip).id framework.db.hosts.update(id, :info => data) - framework.db.report_note(:host => ip, :type => 'host.info', :note => data) + framework.db.report_note(:host => ip, :type => 'host.info', :data => data) end end end @@ -234,7 +234,7 @@ class Db rw.each do |ip| id = framework.db.get_host(:address => ip).id framework.db.hosts.update(id, :name => data) - framework.db.report_note(:host => ip, :type => 'host.name', :note => data) + framework.db.report_note(:host => ip, :type => 'host.name', :data => data) end end end @@ -244,7 +244,7 @@ class Db rw.each do |ip| id = framework.db.get_host(:address => ip).id framework.db.hosts.update(id, :comments => data) - framework.db.report_note(:host => ip, :type => 'host.comments', :note => data) + framework.db.report_note(:host => ip, :type => 'host.comments', :data => data) end end end