Skip to content

Commit 721cf41

Browse files
committed
fix nil class error on non-lantronix hosts
1 parent a105db4 commit 721cf41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/telnet/lantronix_telnet_password.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def parse_reply(pkt)
8484
setup_record = pkt[0]
8585

8686
# If response is a setup record, extract password bytes 13-16
87-
if setup_record[3].ord == 0xF9
87+
if setup_record[3] and setup_record[3].ord == 0xF9
8888
return setup_record[12,4]
8989
else
9090
return nil

0 commit comments

Comments
 (0)