Fix force encoding issue on nil kerberos username
This commit is contained in:
@@ -173,6 +173,7 @@ module Msf
|
||||
realm = options[:realm]
|
||||
server_name = options.fetch(:server_name, "krbtgt/#{realm}")
|
||||
client_name = options[:client_name]
|
||||
client_name = client_name.dup.force_encoding('utf-8') if client_name
|
||||
ticket_options = options.fetch(:options) { 0x50800000 } # Forwardable, Proxiable, Renewable
|
||||
|
||||
# The diffie hellman client parameters
|
||||
@@ -238,10 +239,10 @@ module Msf
|
||||
realm = options[:realm]
|
||||
server_name = options[:server_name]
|
||||
client_name = options[:client_name]
|
||||
client_name = client_name.dup.force_encoding('utf-8') if client_name
|
||||
password = options[:password]
|
||||
password.dup.force_encoding('utf-8') if password
|
||||
password = password.dup.force_encoding('utf-8') if password
|
||||
key = options[:key]
|
||||
client_name.dup.force_encoding('utf-8')
|
||||
request_pac = options.fetch(:request_pac, true)
|
||||
ticket_options = options.fetch(:options) { 0x50800000 } # Forwardable, Proxiable, Renewable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user