Land #3128, Put loot in correct workspace
commit
c4a9b4fda0
|
@ -2092,25 +2092,16 @@ class DBManager
|
|||
loot.service_id = opts[:service][:id]
|
||||
end
|
||||
|
||||
loot.path = path
|
||||
loot.ltype = ltype
|
||||
loot.path = path
|
||||
loot.ltype = ltype
|
||||
loot.content_type = ctype
|
||||
loot.data = data
|
||||
loot.name = name if name
|
||||
loot.info = info if info
|
||||
loot.data = data
|
||||
loot.name = name if name
|
||||
loot.info = info if info
|
||||
loot.workspace = wspace
|
||||
msf_import_timestamps(opts,loot)
|
||||
loot.save!
|
||||
|
||||
if !opts[:created_at]
|
||||
=begin
|
||||
if host
|
||||
host.updated_at = host.created_at
|
||||
host.state = HostState::Alive
|
||||
host.save!
|
||||
end
|
||||
=end
|
||||
end
|
||||
|
||||
ret[:loot] = loot
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue