Land #2643, @ChrisJohnRiley SkipVersionCheck for exim4_dovecot_bannercheck

bug/bundler_fix
jvazquez-r7 2013-11-18 11:28:07 -06:00
commit 9e46975a95
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 6 additions and 1 deletions

View File

@ -61,6 +61,11 @@ class Metasploit3 < Msf::Exploit::Remote
OptInt.new('HTTP_DELAY', [true, 'Time that the HTTP Server will wait for the ELF payload request', 60])
], self.class)
register_advanced_options(
[
OptBool.new("SkipVersionCheck", [false, "Specify this to skip the version check", false])
], self.class)
deregister_options('MAILFROM')
end
@ -140,7 +145,7 @@ class Metasploit3 < Msf::Exploit::Remote
connect
print_status("#{rhost}:#{rport} - Server: #{self.banner.to_s.strip}")
if self.banner.to_s !~ /Exim /
if not datastore['SkipVersionCheck'] and self.banner.to_s !~ /Exim /
disconnect
fail_with(Failure::NoTarget, "#{rhost}:#{rport} - The target server is not running Exim!")
end