handle case-insensitive password, fix received

MS-2855/keylogger-mettle-extension
Brent Cook 2017-12-04 12:47:40 -06:00
parent 06334aa2bd
commit 7edab268f5
1 changed files with 3 additions and 3 deletions

View File

@ -74,9 +74,9 @@ class MetasploitModule < Msf::Exploit::Remote
sock = connect
Rex.sleep(2)
banner = sock.get_once
vprint_status("Recieved #{banner.length} bytes from service")
vprint_status("Received #{banner.length} bytes from service")
vprint_line("#{banner}")
if banner =~ /password/
if banner =~ /password/i
print_status("Authentication enabled on device, authenticating with target...")
if datastore['PASSWORD'].nil?
print_error("#{peer} - Please supply a password to authenticate with")
@ -111,7 +111,7 @@ class MetasploitModule < Msf::Exploit::Remote
if datastore['VERBOSE']
Rex.sleep(2)
resp = sock.get_once
vprint_status("Recieved #{resp.length} bytes in response")
vprint_status("Received #{resp.length} bytes in response")
vprint_line(resp)
end