We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 573ee28 + 333d574 commit cb82015Copy full SHA for cb82015
lib/msf/core/exploit.rb
@@ -672,14 +672,14 @@ def stance
672
# Returns true if the exploit has an aggressive stance.
673
#
674
def aggressive?
675
- (stance == Stance::Aggressive)
+ stance.include?(Stance::Aggressive)
676
end
677
678
679
# Returns if the exploit has a passive stance.
680
681
def passive?
682
- (stance == Stance::Passive)
+ stance.include?(Stance::Passive)
683
684
685
0 commit comments