Land #9387, Check exploit stance for array as well as string
commit
cb82015c87
|
@ -672,14 +672,14 @@ class Exploit < Msf::Module
|
|||
# Returns true if the exploit has an aggressive stance.
|
||||
#
|
||||
def aggressive?
|
||||
(stance == Stance::Aggressive)
|
||||
stance.include?(Stance::Aggressive)
|
||||
end
|
||||
|
||||
#
|
||||
# Returns if the exploit has a passive stance.
|
||||
#
|
||||
def passive?
|
||||
(stance == Stance::Passive)
|
||||
stance.include?(Stance::Passive)
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue