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

Commit 19ecdf8

Browse files
author
byt3bl33d3r
committed
Merge branch 'master' of github.com:byt3bl33d3r/CrackMapExec
2 parents 433a98f + 4690ca2 commit 19ecdf8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/smartlogin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ def smart_login(host, smb, domain):
4545
smb.kerberosLogin(user, passwd, domain, lmhash, nthash, settings.args.aesKey)
4646
else:
4747
smb.login(user, passwd, domain, lmhash, nthash)
48-
print_succ("{}:{} Login successful {}\\{}:{}".format(host, settings.args.port, domain, user, passwd))
48+
print_succ(u"{}:{} Login successful {}\\{}:{}".format(host, settings.args.port, domain, user, passwd))
4949
settings.args.user = user
5050
settings.args.passwd = passwd
5151
settings.args.hash = ':'.join(lmhash, nthash)
5252
return smb
5353
except SessionError as e:
54-
print_error("{}:{} {}\\{}:{} {}".format(host, settings.args.port, domain, user, passwd, e))
54+
print_error(u"{}:{} {}\\{}:{} {}".format(host, settings.args.port, domain, user, passwd, e))
5555
continue
5656

5757
except Exception as e:
@@ -113,12 +113,12 @@ def smart_login(host, smb, domain):
113113
smb.kerberosLogin(user, '', domain, lmhash, nthash, settings.args.aesKey)
114114
else:
115115
smb.login(user, '', domain, lmhash, nthash)
116-
print_succ("{}:{} Login successful {}\\{}:{}".format(host, settings.args.port, domain, user, ntlm_hash))
116+
print_succ(u"{}:{} Login successful {}\\{}:{}".format(host, settings.args.port, domain, user, ntlm_hash))
117117
settings.args.user = user
118118
settings.args.hash = ntlm_hash
119119
return smb
120120
except SessionError as e:
121-
print_error("{}:{} {}\\{}:{} {}".format(host, settings.args.port, domain, user, ntlm_hash, e))
121+
print_error(u"{}:{} {}\\{}:{} {}".format(host, settings.args.port, domain, user, ntlm_hash, e))
122122
continue
123123

124124
if passwords:
@@ -132,12 +132,12 @@ def smart_login(host, smb, domain):
132132
smb.kerberosLogin(user, passwd, domain, '', '', settings.args.aesKey)
133133
else:
134134
smb.login(user, passwd, domain)
135-
print_succ("{}:{} Login successful {}\\{}:{}".format(host, settings.args.port, domain, user, passwd))
135+
print_succ(u"{}:{} Login successful {}\\{}:{}".format(host, settings.args.port, domain, user, passwd))
136136
settings.args.user = user
137137
settings.args.passwd = passwd
138138
return smb
139139
except SessionError as e:
140-
print_error("{}:{} {}\\{}:{} {}".format(host, settings.args.port, domain, user, passwd, e))
140+
print_error(u"{}:{} {}\\{}:{} {}".format(host, settings.args.port, domain, user, passwd, e))
141141
continue
142142

143143
raise socket.error #So we fail without a peep

0 commit comments

Comments
 (0)