Skip to content

Commit 333d574

Browse files
committed
Check exploit stance for array as well as string
An exploit can be both aggressive and passive.
1 parent 693a12e commit 333d574

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)