Skip to content

Commit 255cd18

Browse files
author
jvazquez-r7
committed
Use peer helper
1 parent 55e3f36 commit 255cd18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/auxiliary/scanner/http/hp_imc_som_file_download.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ def my_basename(filename)
6363
def run_host(ip)
6464

6565
unless is_imc_som?
66-
vprint_error("#{rhost}:#{rport} - HP iMC with the SOM component not found")
66+
vprint_error("#{peer} - HP iMC with the SOM component not found")
6767
return
6868
end
6969

70-
vprint_status("#{rhost}:#{rport} - Sending request...")
70+
vprint_status("#{peer} - Sending request...")
7171
res = send_request_cgi({
7272
'uri' => normalize_uri("servicedesk", "servicedesk", "fileDownload"),
7373
'method' => 'GET',
@@ -89,9 +89,9 @@ def run_host(ip)
8989
contents,
9090
fname
9191
)
92-
print_good("#{rhost}:#{rport} - File saved in: #{path}")
92+
print_good("#{peer} - File saved in: #{path}")
9393
else
94-
vprint_error("#{rhost}:#{rport} - Failed to retrieve file")
94+
vprint_error("#{peer} - Failed to retrieve file")
9595
return
9696
end
9797
end

0 commit comments

Comments
 (0)