Skip to content

Commit 8a0957e

Browse files
committed
return early from rid_brute on SID/domain query failure
1 parent 04da125 commit 8a0957e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nxc/protocols/mssql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ def rid_brute(self, max_rid=None):
438438
domain_sid = SID(bytes.fromhex(raw_domain_sid.decode())).formatCanonical()[:-4]
439439
except Exception as e:
440440
self.logger.fail(f"Error parsing SID. Not domain joined?: {e}")
441+
return entries
441442

442443
so_far = 0
443444
simultaneous = 1000

0 commit comments

Comments
 (0)