Skip to content

Commit 669a55f

Browse files
authored
Merge pull request Pennyw0rth#356 from Pennyw0rth/neff-fix-332
2 parents ead02d8 + 9d32ea0 commit 669a55f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nxc/protocols/smb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,9 @@ def check_if_admin(self):
572572
self.admin_privs = True
573573
except scmr.DCERPCException:
574574
self.admin_privs = False
575+
except Exception as e:
576+
self.logger.fail(f"Error checking if user is admin on {self.host}: {e}")
577+
self.admin_privs = False
575578

576579
def gen_relay_list(self):
577580
if self.server_os.lower().find("windows") != -1 and self.signing is False:

0 commit comments

Comments
 (0)