Skip to content

Commit

Permalink
fixing incorrect gss wrap padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ShutdownRepo committed Feb 17, 2024
1 parent 6db0def commit 93b7533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion impacket/krb5/gssapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def GSS_Wrap(self, sessionKey, data, sequenceNumber, direction = 'init', encrypt
token = self.WRAP()

# Let's pad the data
pad = (8 - (len(data) % 8)) & 0x7
# pad = (8 - (len(data) % 8)) & 0x7
pad = (16 - (len(data) % 16)) & 15
padStr = b(chr(pad)) * pad
data += padStr

Expand Down

0 comments on commit 93b7533

Please sign in to comment.