bug/bundler_fix
Jon Hart 2015-10-09 10:14:19 -07:00
commit 7a16f28969
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
2 changed files with 8 additions and 4 deletions

View File

@ -22,13 +22,15 @@ class Metasploit3 < Msf::Auxiliary
def run_host(ip)
begin
res = connect
connect
banner_sanitized = Rex::Text.to_hex_ascii(banner.to_s)
print_status("#{ip}:#{rport} IMAP #{banner_sanitized}")
report_service(:host => rhost, :port => rport, :name => "imap", :info => banner)
rescue ::Rex::ConnectionError
rescue ::EOFError
print_error("#{ip}:#{rport} - The service failed to respond")
rescue ::Exception => e
print_error("#{rhost}:#{rport} #{e} #{e.backtrace}")
print_error("#{ip}:#{rport} - #{e} #{e.backtrace}")
end
end

View File

@ -25,14 +25,16 @@ class Metasploit3 < Msf::Auxiliary
def run_host(ip)
begin
res = connect
connect
banner = sock.get_once(-1, 30)
banner_sanitized = Rex::Text.to_hex_ascii(banner.to_s)
print_status("#{ip}:#{rport} POP3 #{banner_sanitized}")
report_service(:host => rhost, :port => rport, :name => "pop3", :info => banner)
rescue ::Rex::ConnectionError
rescue ::EOFError
print_error("#{ip}:#{rport} - The service failed to respond")
rescue ::Exception => e
print_error("#{rhost}:#{rport} #{e} #{e.backtrace}")
print_error("#{ip}:#{rport} - #{e} #{e.backtrace}")
end
end