Make sure that the ntlm blob data is pasrsed into UTF-8
parent
85c26c64e2
commit
078496437f
|
@ -402,16 +402,20 @@ class Utils
|
||||||
data[:default_name] = temp_name.encode("UTF-8")
|
data[:default_name] = temp_name.encode("UTF-8")
|
||||||
when 2
|
when 2
|
||||||
#netbios domain
|
#netbios domain
|
||||||
data[:default_domain] = addr
|
temp_domain = addr
|
||||||
data[:default_domain].force_encoding("UTF-16LE")
|
temp_domain.force_encoding("UTF-16LE")
|
||||||
|
data[:default_domain] = temp_domain.encode("UTF-8")
|
||||||
when 3
|
when 3
|
||||||
#dns name
|
#dns name
|
||||||
data[:dns_host_name] = addr
|
temp_dns = addr
|
||||||
data[:dns_host_name].force_encoding("UTF-16LE")
|
temp_dns.force_encoding("UTF-16LE")
|
||||||
|
data[:dns_host_name] = temp_dns.encode("UTF-8")
|
||||||
|
|
||||||
when 4
|
when 4
|
||||||
#dns domain
|
#dns domain
|
||||||
data[:dns_domain_name] = addr
|
temp_dns_domain = addr
|
||||||
data[:dns_domain_name].force_encoding("UTF-16LE")
|
temp_dns_domain.force_encoding("UTF-16LE")
|
||||||
|
data[:dns_domain_name] = temp_dns_domain.encode("UTF-8")
|
||||||
when 5
|
when 5
|
||||||
#The FQDN of the forest.
|
#The FQDN of the forest.
|
||||||
when 6
|
when 6
|
||||||
|
|
Loading…
Reference in New Issue