Module: Msf::Exploit::Remote::Kerberos::Client::Base
- Included in:
- Msf::Exploit::Remote::Kerberos::Client
- Defined in:
- lib/msf/core/exploit/remote/kerberos/client/base.rb
Instance Method Summary collapse
-
#build_client_name(opts = {}) ⇒ Rex::Proto::Kerberos::Model::PrincipalName
Builds a kerberos Client Name Principal.
-
#build_server_name(opts = {}) ⇒ Rex::Proto::Kerberos::Model::PrincipalName
Builds a kerberos Server Name Principal.
Instance Method Details
#build_client_name(opts = {}) ⇒ Rex::Proto::Kerberos::Model::PrincipalName
Builds a kerberos Client Name Principal
17 18 19 20 21 22 23 24 25 |
# File 'lib/msf/core/exploit/remote/kerberos/client/base.rb', line 17 def build_client_name(opts = {}) name = opts[:client_name] || '' name_type = opts[:client_type] || Rex::Proto::Kerberos::Model::NameType::NT_PRINCIPAL Rex::Proto::Kerberos::Model::PrincipalName.new( name_type: name_type, name_string: name.split('/') ) end |
#build_server_name(opts = {}) ⇒ Rex::Proto::Kerberos::Model::PrincipalName
Builds a kerberos Server Name Principal
34 35 36 37 38 39 40 41 42 |
# File 'lib/msf/core/exploit/remote/kerberos/client/base.rb', line 34 def build_server_name(opts = {}) name = opts[:server_name] || '' name_type = opts[:server_type] || Rex::Proto::Kerberos::Model::NameType::NT_PRINCIPAL Rex::Proto::Kerberos::Model::PrincipalName.new( name_type: name_type, name_string: name.split('/') ) end |