From 1e517c83131ad127084d16996b106b506bedc583 Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Fri, 22 Mar 2024 12:47:40 +0100 Subject: [PATCH] Fix ruff --- nxc/protocols/smb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxc/protocols/smb.py b/nxc/protocols/smb.py index 3038bdf4..c0413e4d 100755 --- a/nxc/protocols/smb.py +++ b/nxc/protocols/smb.py @@ -1044,7 +1044,7 @@ class smb(connection): lmhash=self.lmhash, nthash=self.nthash, ) - logged_on = set([(f"{user.wkui1_logon_domain}\\{user.wkui1_username}", user.wkui1_logon_server) for user in logged_on]) + logged_on = {(f"{user.wkui1_logon_domain}\\{user.wkui1_username}", user.wkui1_logon_server) for user in logged_on} self.logger.success("Enumerated logged_on users") if self.args.loggedon_users_filter: for user in logged_on: