Skip to content

Commit 0dbea8e

Browse files
author
au
committed
encode string as utf8 unicode, not latin1
1 parent e927f33 commit 0dbea8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/smb/kerberos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def kerberos_login_with_S4U(domain, hostname, username, password, nthash, lmhash
8888
client_name = Principal(impersonate, type=constants.PrincipalNameType.NT_PRINCIPAL.value)
8989

9090
s4u_byte_array = struct.pack("<I", constants.PrincipalNameType.NT_PRINCIPAL.value)
91-
s4u_byte_array += b(impersonate) + b(domain) + b"Kerberos"
91+
s4u_byte_array += impersonate.encode() + b(domain) + b"Kerberos"
9292

9393
# Finally cksum is computed by calling the KERB_CHECKSUM_HMAC_MD5 hash
9494
# with the following three parameters: the session key of the TGT of

0 commit comments

Comments
 (0)