Skip to content

Commit a6980b9

Browse files
committed
Updated to module based feedback from wchen-r7
1 parent 6c13c14 commit a6980b9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/auxiliary/gather/konica_minolta_pwd_extract.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def generate_smbpwd_request_xlm(major, minor, authkey)
106106

107107
# This next section will post the XML soap messages for information gathering.
108108
def run_host(ip)
109-
print_status("Attempting to extract username and password from the host at #{rhost}")
109+
print_status("Attempting to extract username and password from the host at #{peer}")
110110
version
111111
end
112112

@@ -126,8 +126,7 @@ def version
126126
login(major, minor)
127127

128128
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError
129-
print_error("#{rhost} - Version check Connection failed.")
130-
return nil
129+
print_error("#{peer} - Version check Connection failed.")
131130
end
132131

133132
# This section logs on and retrieves AuthKey token
@@ -147,8 +146,7 @@ def login(major, minor)
147146
authkey = ("#{authkey_parse}")
148147
extract(major, minor, authkey)
149148
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError
150-
print_error("#{rhost} - Login Connection failed.")
151-
return
149+
print_error("#{peer} - Login Connection failed.")
152150
end
153151
end
154152

0 commit comments

Comments
 (0)