Added option to ignore banner checks
parent
de424e3779
commit
5bd5eacd77
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue