Skip to content

Commit c4a9b4f

Browse files
David MaloneyDavid Maloney
authored andcommitted
Land rapid7#3128, Put loot in correct workspace
2 parents b02337d + dd4b16a commit c4a9b4f

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

lib/msf/core/db.rb

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,25 +2092,16 @@ 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

2104-
if !opts[:created_at]
2105-
=begin
2106-
if host
2107-
host.updated_at = host.created_at
2108-
host.state = HostState::Alive
2109-
host.save!
2110-
end
2111-
=end
2112-
end
2113-
21142105
ret[:loot] = loot
21152106
}
21162107
end

0 commit comments

Comments
 (0)