From 5bd5eacd7714fd16215d32fc4aaa0a17928b1adc Mon Sep 17 00:00:00 2001 From: Chris John Riley Date: Fri, 15 Nov 2013 15:01:11 +0100 Subject: [PATCH 1/2] Added option to ignore banner checks --- modules/exploits/linux/smtp/exim4_dovecot_exec.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/exploits/linux/smtp/exim4_dovecot_exec.rb b/modules/exploits/linux/smtp/exim4_dovecot_exec.rb index 4958e2a194..7869267e04 100644 --- a/modules/exploits/linux/smtp/exim4_dovecot_exec.rb +++ b/modules/exploits/linux/smtp/exim4_dovecot_exec.rb @@ -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 From 540b85df3f6290d3fa293b58839a06857b4d8600 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Mon, 18 Nov 2013 11:27:32 -0600 Subject: [PATCH 2/2] Set SkipVersionCheck as not required --- modules/exploits/linux/smtp/exim4_dovecot_exec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/linux/smtp/exim4_dovecot_exec.rb b/modules/exploits/linux/smtp/exim4_dovecot_exec.rb index 7869267e04..3e65911f6e 100644 --- a/modules/exploits/linux/smtp/exim4_dovecot_exec.rb +++ b/modules/exploits/linux/smtp/exim4_dovecot_exec.rb @@ -63,7 +63,7 @@ class Metasploit3 < Msf::Exploit::Remote register_advanced_options( [ - OptBool.new("SkipVersionCheck", [true, "Specify this to skip the version check", false]) + OptBool.new("SkipVersionCheck", [false, "Specify this to skip the version check", false]) ], self.class) deregister_options('MAILFROM')