Skip to content

Commit 410e040

Browse files
committed
Don't print an index error with null session, we won't have null user in the db
1 parent 9644cae commit 410e040

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/smb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def shares(self):
846846
self.logger.debug(f"domain: {self.domain}")
847847
user_id = self.db.get_user(self.domain.upper(), self.username)[0][0]
848848
except IndexError as e:
849-
if self.kerberos:
849+
if self.kerberos or self.username == "":
850850
pass
851851
else:
852852
self.logger.fail(f"IndexError: {e!s}")

0 commit comments

Comments
 (0)