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.
|
# Returns true if the exploit has an aggressive stance.
|
||||||
#
|
#
|
||||||
def aggressive?
|
def aggressive?
|
||||||
(stance == Stance::Aggressive)
|
stance.include?(Stance::Aggressive)
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Returns if the exploit has a passive stance.
|
# Returns if the exploit has a passive stance.
|
||||||
#
|
#
|
||||||
def passive?
|
def passive?
|
||||||
(stance == Stance::Passive)
|
stance.include?(Stance::Passive)
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue