Removing useless (?) begin/rescue from smtp_version

Let the scanner mixin handle the exceptions.
This commit is contained in:
Tod Beardsley 2012-01-09 14:09:27 -06:00
parent e7d7302644
commit 15990efd85
1 changed files with 0 additions and 4 deletions

View File

@ -33,15 +33,11 @@ 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