diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 010633f5b6..c74b205f0b 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -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