@@ -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