Skip to content

Commit 4d112e7

Browse files
committed
abort rid_brute on invalid connection after failed login
1 parent 08ad1cc commit 4d112e7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nxc/protocols/mssql.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,9 @@ def handle_mssql_reply(self):
423423

424424
def rid_brute(self, max_rid=None):
425425
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
426429
if not max_rid:
427430
max_rid = int(self.args.rid_brute)
428431

0 commit comments

Comments
 (0)