diff --git a/lib/msf/core/db.rb b/lib/msf/core/db.rb index 4d0ac6e2af..674456fca0 100644 --- a/lib/msf/core/db.rb +++ b/lib/msf/core/db.rb @@ -1008,7 +1008,7 @@ class DBManager info[k] = opts[k] if opts[k] end - return unless info[:attempted_at] and info.has_key(:exploited) + return unless info[:attempted_at] and info.has_key?(:exploited) vuln.vuln_attempts.create(info) }