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

Commit 7b0f2e9

Browse files
author
mpgn
committed
Add multi domain support DOMAIN\user when passing file to -u option #243
1 parent 2ca377f commit 7b0f2e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cme/connection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ def login(self):
166166
for user in self.args.username:
167167
if not isinstance(user, str) and isfile(user.name):
168168
for usr in user:
169+
if "\\" in usr:
170+
tmp = usr
171+
usr = tmp.split('\\')[1].strip()
172+
self.domain = tmp.split('\\')[0]
169173
if self.args.hash:
170174
with sem:
171175
for ntlm_hash in self.args.hash:

0 commit comments

Comments
 (0)