Skip to content

Commit d9ce9e9

Browse files
committed
Remove unused import and simplify addition
1 parent 4045bb4 commit d9ce9e9

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

nxc/protocols/ldap/laps.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import binascii
2-
import hashlib
31
from json import loads
42
from pyasn1.codec.der import decoder
53
from pyasn1_modules import rfc5652

nxc/protocols/smb/samruser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def get_user_info(self, domain_handle, user_ids):
162162
last_pw_set = old_large_int_to_datetime(user_info["PasswordLastSet"])
163163
if last_pw_set == "1601-01-01 00:00:00":
164164
last_pw_set = "<never>"
165-
users = users + 1
165+
users += + 1
166166
self.logger.highlight(f"{user_name:<30}{last_pw_set:<20}{bad_pwd_count:<8}{user_description} ")
167167
samr.hSamrCloseHandle(self.dce, open_user_resp["UserHandle"])
168168
return users

0 commit comments

Comments
 (0)