ensure incoming creds are all UTF-8

GSoC/Meterpreter_Web_Console
Brent Cook 2018-11-22 09:20:12 -06:00
parent e07e5caebd
commit 847e630630
1 changed files with 3 additions and 4 deletions

View File

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