We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ff1e89 + 600abd6 commit b27b20fCopy full SHA for b27b20f
1 file changed
nxc/protocols/mssql.py
@@ -435,6 +435,9 @@ def handle_mssql_reply(self):
435
436
def rid_brute(self, max_rid=None):
437
entries = []
438
+ if self.conn.lastError:
439
+ self.logger.fail(f"Cannot perform RID bruteforce due to invalid connection: {self.conn.lastError}")
440
+ return entries
441
if not max_rid:
442
max_rid = int(self.args.rid_brute)
443
@@ -447,6 +450,7 @@ def rid_brute(self, max_rid=None):
447
450
domain_sid = SID(bytes.fromhex(raw_domain_sid.decode())).formatCanonical()[:-4]
448
451
except Exception as e:
449
452
self.logger.fail(f"Error parsing SID. Not domain joined?: {e}")
453
454
455
so_far = 0
456
simultaneous = 1000
0 commit comments