Land #7392, stance check fix for HttpServer
commit
3afe1538ef
|
@ -73,7 +73,8 @@ module Exploit::Remote::HttpServer
|
||||||
end
|
end
|
||||||
|
|
||||||
def print_prefix
|
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} - "
|
super + "#{cli.peerhost.ljust(16)} #{self.shortname} - "
|
||||||
else
|
else
|
||||||
super
|
super
|
||||||
|
|
Loading…
Reference in New Issue