Added option to ignore banner checks

bug/bundler_fix
Chris John Riley 2013-11-15 15:01:11 +01:00
parent de424e3779
commit 5bd5eacd77
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", [true, "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