Skip to content

Commit

Permalink
Use null-terminated string for the signed token
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Mar 8, 2020
1 parent 62f65e4 commit b15968d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adb_shell/adb_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def connect(self, rsa_keys=None, timeout_s=None, auth_timeout_s=constants.DEFAUL
raise exceptions.InvalidResponseError('Unknown AUTH response: %s %s %s' % (arg0, arg1, banner))

# 6.2. Sign the last ``banner`` and send it in an ``b'AUTH'`` message
signed_token = rsa_key.Sign(banner)
signed_token = rsa_key.Sign(banner) + b'\0'
msg = AdbMessage(constants.AUTH, constants.AUTH_SIGNATURE, 0, signed_token)
self._send(msg, adb_info)

Expand Down

0 comments on commit b15968d

Please sign in to comment.