Skip to content

Commit 6d01d7f

Browse files
committed
Uses peer instead of ip:port across all the module
1 parent 447c4ee commit 6d01d7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/auxiliary/dos/http/ms15_034_ulonglongadd.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def run_host(ip)
6060
if check_host(ip) == Exploit::CheckCode::Vulnerable
6161
dos_host(ip)
6262
else
63-
print_status("#{ip}:#{rport} - Probably not vulnerable, will not dos it.")
63+
print_status("#{peer} - Probably not vulnerable, will not dos it.")
6464
end
6565
end
6666

@@ -76,17 +76,17 @@ def get_file_size(ip)
7676
res = send_request_raw('uri' => uri)
7777

7878
unless res
79-
vprint_error("#{ip}:#{rport} - Connection timed out")
79+
vprint_error("#{peer} - Connection timed out")
8080
return file_size
8181
end
8282

8383
if res.code == 404
84-
vprint_error("#{ip}:#{rport} - You got a 404. URI must be a valid resource.")
84+
vprint_error("#{peer} - You got a 404. URI must be a valid resource.")
8585
return file_size
8686
end
8787

8888
file_size = res.body.length
89-
vprint_status("#{ip}:#{rport} - File length: #{file_size} bytes")
89+
vprint_status("#{peer} - File length: #{file_size} bytes")
9090

9191
return file_size
9292
}.call
@@ -112,7 +112,7 @@ def dos_host(ip)
112112
rescue ::Errno::EPIPE, ::Timeout::Error
113113
# Same exceptions the HttpClient mixin catches
114114
end
115-
print_status("#{ip}:#{rport} - DOS request sent")
115+
print_status("#{peer} - DOS request sent")
116116
end
117117

118118
def potential_static_files_uris

0 commit comments

Comments
 (0)