Fix #4865, undef method 'ancestors' in lib/msf/core/payload_set.rb
Fix #4865
This commit is contained in:
parent
cb9922ad39
commit
31191bef39
|
@ -236,7 +236,7 @@ class PayloadSet < ModuleSet
|
|||
next if (handler and not p.handler_klass.ancestors.include?(handler))
|
||||
|
||||
# Check to see if the session classes match.
|
||||
next if (session and not p.session.ancestors.include?(session))
|
||||
next if (session and p.session and not p.session.ancestors.include?(session))
|
||||
|
||||
# Check for matching payload types
|
||||
next if (payload_type and p.payload_type != payload_type)
|
||||
|
|
Loading…
Reference in New Issue