Skip to content

Commit 743bea9

Browse files
author
Brent Cook
committed
fix exploit Passive / Aggressive overrides to do the right thing
1 parent a13e83a commit 743bea9

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
@@ -649,14 +649,14 @@ def stance
649649
# Returns true if the exploit has an aggressive stance.
650650
#
651651
def aggressive?
652-
(stance == Stance::Aggressive || stance.include?(Stance::Aggressive))
652+
(stance == Stance::Aggressive)
653653
end
654654

655655
#
656656
# Returns if the exploit has a passive stance.
657657
#
658658
def passive?
659-
(stance == Stance::Passive || stance.include?(Stance::Passive))
659+
(stance == Stance::Passive)
660660
end
661661

662662
#

0 commit comments

Comments
 (0)