From 333d57461ad4ff40cb5f379f4a29dbf771d7c41c Mon Sep 17 00:00:00 2001 From: William Vu Date: Mon, 8 Jan 2018 13:39:55 -0600 Subject: [PATCH] Check exploit stance for array as well as string An exploit can be both aggressive and passive. --- lib/msf/core/exploit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/core/exploit.rb b/lib/msf/core/exploit.rb index dc1d4014e9..457c3a88b6 100644 --- a/lib/msf/core/exploit.rb +++ b/lib/msf/core/exploit.rb @@ -672,14 +672,14 @@ class Exploit < Msf::Module # Returns true if the exploit has an aggressive stance. # def aggressive? - (stance == Stance::Aggressive) + stance.include?(Stance::Aggressive) end # # Returns if the exploit has a passive stance. # def passive? - (stance == Stance::Passive) + stance.include?(Stance::Passive) end #