From a6980b9eb816c54581a83abb74f41b7f3093a9a3 Mon Sep 17 00:00:00 2001 From: Deral Heiland Date: Thu, 30 Oct 2014 12:59:11 -0400 Subject: [PATCH] Updated to module based feedback from wchen-r7 --- modules/auxiliary/gather/konica_minolta_pwd_extract.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/auxiliary/gather/konica_minolta_pwd_extract.rb b/modules/auxiliary/gather/konica_minolta_pwd_extract.rb index ad8955d5e9..d63f753862 100644 --- a/modules/auxiliary/gather/konica_minolta_pwd_extract.rb +++ b/modules/auxiliary/gather/konica_minolta_pwd_extract.rb @@ -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