Removing useless (?) begin/rescue from smtp_version
Let the scanner mixin handle the exceptions.unstable
parent
e7d7302644
commit
15990efd85
|
@ -33,16 +33,12 @@ class Metasploit3 < Msf::Auxiliary
|
|||
end
|
||||
|
||||
def run_host(ip)
|
||||
begin
|
||||
res = connect
|
||||
banner_sanitized = Rex::Text.to_hex_ascii(banner.to_s)
|
||||
print_status("#{ip}:#{rport} SMTP #{banner_sanitized}")
|
||||
report_service(:host => rhost, :port => rport, :name => "smtp", :info => banner)
|
||||
rescue ::Rex::ConnectionError
|
||||
rescue ::Exception => e
|
||||
print_error("#{rhost}:#{rport} #{e} #{e.backtrace}")
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue