Updated to module based feedback from wchen-r7

bug/bundler_fix
Deral Heiland 2014-10-30 12:59:11 -04:00
parent 6c13c14be1
commit a6980b9eb8
1 changed files with 3 additions and 5 deletions

View File

@ -106,7 +106,7 @@ class Metasploit3 < Msf::Auxiliary
# This next section will post the XML soap messages for information gathering.
def run_host(ip)
print_status("Attempting to extract username and password from the host at #{rhost}")
print_status("Attempting to extract username and password from the host at #{peer}")
version
end
@ -126,8 +126,7 @@ class Metasploit3 < Msf::Auxiliary
login(major, minor)
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError
print_error("#{rhost} - Version check Connection failed.")
return nil
print_error("#{peer} - Version check Connection failed.")
end
# This section logs on and retrieves AuthKey token
@ -147,8 +146,7 @@ class Metasploit3 < Msf::Auxiliary
authkey = ("#{authkey_parse}")
extract(major, minor, authkey)
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError
print_error("#{rhost} - Login Connection failed.")
return
print_error("#{peer} - Login Connection failed.")
end
end