Land #7392, stance check fix for HttpServer
commit
3afe1538ef
|
@ -73,7 +73,8 @@ module Exploit::Remote::HttpServer
|
|||
end
|
||||
|
||||
def print_prefix
|
||||
if cli && !(stance == Msf::Exploit::Stance::Aggressive || stance.include?(Msf::Exploit::Stance::Aggressive))
|
||||
if cli && self.respond_to?(:stance) &&
|
||||
!(stance == Msf::Exploit::Stance::Aggressive || stance.include?(Msf::Exploit::Stance::Aggressive))
|
||||
super + "#{cli.peerhost.ljust(16)} #{self.shortname} - "
|
||||
else
|
||||
super
|
||||
|
|
Loading…
Reference in New Issue