diff --git a/lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb b/lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb index 4116c3c3772c..c94289e6b3fa 100644 --- a/lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb +++ b/lib/msf/core/exploit/remote/kerberos/ticket/storage/base.rb @@ -118,7 +118,7 @@ def objects(options, &block) unless (info = loot_info(options)).blank? filter[:info] = JSON.generate(info) end - loots = framework.db.loots(workspace: myworkspace, ltype: 'mit.kerberos.ccache', **filter).select do |loot| + loots = framework.db.loots(workspace: options.fetch(:workspace) { workspace }, ltype: 'mit.kerberos.ccache', **filter).select do |loot| # Remove any loot that isn't 'mit.kerberos.ccache' # Necessary when an `id` is provided in which case the `ltype` search above is ignored loot.ltype == 'mit.kerberos.ccache'