Skip to content

Commit 8fd0e39

Browse files
committed
Rename variable to more meaningful name
1 parent 3b0f74f commit 8fd0e39

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ def check_ldaps_cbt(self):
256256
self.cbt_status = "Always" # CBT is Required
257257
elif str(e).find("data 52e") >= 0:
258258
ldap_connection = ldap_impacket.LDAPConnection(url=ldap_url, baseDN=self.baseDN, dstIp=self.host)
259-
tmp = bytearray(ldap_connection._LDAPConnection__channel_binding_value)
260-
tmp[15] = (tmp[3] + 1) % 256
261-
ldap_connection._LDAPConnection__channel_binding_value = bytes(tmp)
259+
new_cbv = bytearray(ldap_connection._LDAPConnection__channel_binding_value)
260+
new_cbv[15] = (new_cbv[3] + 1) % 256
261+
ldap_connection._LDAPConnection__channel_binding_value = bytes(new_cbv)
262262
try:
263263
ldap_connection.login(user=" ", domain=self.domain)
264264
except ldap_impacket.LDAPSessionError as e:

0 commit comments

Comments
 (0)