Skip to content

Commit cb82015

Browse files
committed
Land rapid7#9387, Check exploit stance for array as well as string
2 parents 573ee28 + 333d574 commit cb82015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,14 +672,14 @@ def stance
672672
# Returns true if the exploit has an aggressive stance.
673673
#
674674
def aggressive?
675-
(stance == Stance::Aggressive)
675+
stance.include?(Stance::Aggressive)
676676
end
677677

678678
#
679679
# Returns if the exploit has a passive stance.
680680
#
681681
def passive?
682-
(stance == Stance::Passive)
682+
stance.include?(Stance::Passive)
683683
end
684684

685685
#

0 commit comments

Comments
 (0)