We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a5cbf6 + 8a0957e commit 600abd6Copy full SHA for 600abd6
1 file changed
nxc/protocols/mssql.py
@@ -423,6 +423,9 @@ def handle_mssql_reply(self):
423
424
def rid_brute(self, max_rid=None):
425
entries = []
426
+ if self.conn.lastError:
427
+ self.logger.fail(f"Cannot perform RID bruteforce due to invalid connection: {self.conn.lastError}")
428
+ return entries
429
if not max_rid:
430
max_rid = int(self.args.rid_brute)
431
@@ -435,6 +438,7 @@ def rid_brute(self, max_rid=None):
435
438
domain_sid = SID(bytes.fromhex(raw_domain_sid.decode())).formatCanonical()[:-4]
436
439
except Exception as e:
437
440
self.logger.fail(f"Error parsing SID. Not domain joined?: {e}")
441
442
443
so_far = 0
444
simultaneous = 1000
0 commit comments