metasploit-framework/lib/rex/proto/kerberos/model.rb

86 lines
2.5 KiB
Ruby
Raw Normal View History

2014-12-10 15:54:57 +00:00
# -*- coding: binary -*-
2014-12-09 21:53:29 +00:00
module Rex
module Proto
module Kerberos
module Model
VERSION = 5
2014-12-15 02:51:26 +00:00
# Application Message Id's
2014-12-09 21:53:29 +00:00
AS_REQ = 10
AS_REP = 11
2014-12-09 21:53:29 +00:00
TGS_REQ = 12
TGS_REP = 13
2014-12-15 02:51:26 +00:00
KRB_ERROR = 30
2014-12-16 22:04:13 +00:00
TICKET = 1
2014-12-16 23:45:54 +00:00
AUTHENTICATOR = 2
2014-12-09 21:53:29 +00:00
# Encryption Message Id's
ENC_KDC_REQUEST_BODY = 10
ENC_AS_RESPONSE = 8
ENC_TGS_RESPONSE = 9
2014-12-09 21:53:29 +00:00
KDC_OPTION_RESERVED = 0
KDC_OPTION_FORWARDABLE = 1
KDC_OPTION_FORWARDED = 2
KDC_OPTION_PROXIABLE = 3
KDC_OPTION_PROXY = 4
KDC_OPTION_ALLOW_POST_DATE = 5
KDC_OPTION_POST_DATED = 6
KDC_OPTION_UNUSED_7 = 7
KDC_OPTION_RENEWABLE = 8
KDC_OPTION_UNUSED_9 = 9
KDC_OPTION_UNUSED_10 = 10
KDC_OPTION_UNUSED_11 = 11
KDC_OPTION_RENEWABLE_OK = 27
KDC_OPTION_ENC_TKT_IN_SKEY = 28
KDC_OPTION_RENEW = 30
KDC_OPTION_VALIDATE = 31
# From Principal
# Name type not known
NT_UNKNOWN = 0
# The name of the principal
NT_PRINCIPAL = 1
# Service and other unique instances
NT_SRV_INST = 2
# Service with host name and instance
NT_SRV_HST = 3
# Service with host as remaining component
NT_SRV_XHST = 4
# Unique ID
NT_UID = 5
# From padata
PA_TGS_REQ = 1
PA_ENC_TIMESTAMP = 2
PA_PW_SALT = 3
PA_PAC_REQUEST = 128
# From RFC-4757: The RC4-HMAC Kerberos Encryption Types Used by Microsoft Windows
KERB_ETYPE_RC4_HMAC = 23
2014-12-09 21:53:29 +00:00
end
end
end
end
require 'rex/proto/kerberos/model/element'
2014-12-15 01:15:57 +00:00
require 'rex/proto/kerberos/model/principal_name'
require 'rex/proto/kerberos/model/encrypted_data'
2014-12-16 23:05:35 +00:00
require 'rex/proto/kerberos/model/checksum'
2014-12-15 01:15:57 +00:00
require 'rex/proto/kerberos/model/pre_auth_pac_request'
require 'rex/proto/kerberos/model/pre_auth_enc_time_stamp'
require 'rex/proto/kerberos/model/pre_auth_data'
require 'rex/proto/kerberos/model/kdc_request_body'
require 'rex/proto/kerberos/model/kdc_request'
require 'rex/proto/kerberos/model/krb_error'
require 'rex/proto/kerberos/model/encryption_key'
2014-12-16 23:45:54 +00:00
require 'rex/proto/kerberos/model/authenticator'
require 'rex/proto/kerberos/model/ticket'
require 'rex/proto/kerberos/model/last_request'
require 'rex/proto/kerberos/model/enc_kdc_response'
2014-12-15 03:20:54 +00:00
require 'rex/proto/kerberos/model/kdc_response'