Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit c3c9b2f

Browse files
author
mpgn
committed
Remove useless code #364
1 parent 13dca86 commit c3c9b2f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cme/protocols/mssql.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,6 @@ def plaintext_login(self, domain, username, password):
174174
res = self.conn.login(None, username, password, domain, None, self.args.auth_type == 'windows')
175175
if res is not True:
176176
self.conn.printReplies()
177-
if self.args.no_bruteforce:
178-
self.conn.disconnect()
179-
self.create_conn_obj()
180177
return False
181178

182179
self.password = password
@@ -222,9 +219,6 @@ def hash_login(self, domain, username, ntlm_hash):
222219
res = self.conn.login(None, username, '', domain, ':' + nthash if not lmhash else ntlm_hash, True)
223220
if res is not True:
224221
self.conn.printReplies()
225-
if self.args.no_bruteforce:
226-
self.conn.disconnect()
227-
self.create_conn_obj()
228222
return False
229223

230224
self.hash = ntlm_hash

0 commit comments

Comments
 (0)