Skip to content

Commit dc85a99

Browse files
committed
report_loot now sets proper Mdm::Workspace
* Uses an Mdm::Workspace when passed one in conf hash
1 parent b79920b commit dc85a99

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/msf/core/db.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,12 +2092,13 @@ def report_loot(opts)
20922092
loot.service_id = opts[:service][:id]
20932093
end
20942094

2095-
loot.path = path
2096-
loot.ltype = ltype
2095+
loot.path = path
2096+
loot.ltype = ltype
20972097
loot.content_type = ctype
2098-
loot.data = data
2099-
loot.name = name if name
2100-
loot.info = info if info
2098+
loot.data = data
2099+
loot.name = name if name
2100+
loot.info = info if info
2101+
loot.workspace = wspace
21012102
msf_import_timestamps(opts,loot)
21022103
loot.save!
21032104

0 commit comments

Comments
 (0)