Change kind_of? to is_a?

GSoC/Meterpreter_Web_Console
Matthew Kienow 2018-05-23 17:40:52 -04:00
parent 2c92e85494
commit 7ec5c06738
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ module Msf::DBManager::SessionEvent
end
session_id = nil
if session.kind_of?(Mdm::Session)
if session.is_a?(Mdm::Session)
session_id = session.id
elsif session.is_a?(Hash) && session.key?(:id)
session_id = session[:id]