ensure incoming creds are all UTF-8
parent
e07e5caebd
commit
847e630630
|
@ -93,10 +93,9 @@ module Metasploit
|
||||||
proof = nil
|
proof = nil
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
realm = (credential.realm || "").force_encoding('UTF-8')
|
||||||
realm = credential.realm || ""
|
username = (credential.public || "").force_encoding('UTF-8')
|
||||||
username = credential.public || ""
|
password = (credential.private || "").force_encoding('UTF-8')
|
||||||
password = credential.private || ""
|
|
||||||
client = RubySMB::Client.new(self.dispatcher, username: username, password: password, domain: realm)
|
client = RubySMB::Client.new(self.dispatcher, username: username, password: password, domain: realm)
|
||||||
status_code = client.login
|
status_code = client.login
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue