Land #7392, stance check fix for HttpServer

bug/bundler_fix
William Vu 2016-10-02 20:21:47 -05:00
commit 3afe1538ef
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 2 additions and 1 deletions

View File

@ -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