Land #9387, Check exploit stance for array as well as string

MS-2855/keylogger-mettle-extension
Brent Cook 2018-01-09 03:52:59 -05:00
commit cb82015c87
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 2 additions and 2 deletions

View File

@ -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
# #