Path: blob/master/lib/rex/proto/kerberos/model.rb
19758 views
# -*- coding: binary -*-12module Rex3module Proto4module Kerberos5module Model6VERSION = 578# Application Message Id's910AS_REQ = 1011AS_REP = 1112TGS_REQ = 1213TGS_REP = 1314KRB_ERROR = 3015TICKET = 116AUTHENTICATOR = 217AP_REQ = 1418AP_REP = 1519KRB_CRED = 2220ENC_AP_REP_PART = 2721ENC_KRB_CRED_PART = 292223module OID24DiffieHellman = '1.2.840.10046.2.1'25SHA1 = '1.3.14.3.2.26'26SHA256 = '2.16.840.1.101.3.4.2.1'27ContentType = '1.2.840.113549.1.9.3'28MessageDigest = '1.2.840.113549.1.9.4'29RSAWithSHA1 = '1.2.840.113549.1.1.5'30RSAWithSHA256 = '1.2.840.113549.1.1.11'31PkinitAuthData = '1.3.6.1.5.2.3.1'32SignedData = '1.2.840.113549.1.7.2'33end3435# From Principal36# https://datatracker.ietf.org/doc/html/rfc4120#section-6.23738module NameType39# Name type not known40NT_UNKNOWN = 041# The name of the principal42NT_PRINCIPAL = 143# Service and other unique instances44NT_SRV_INST = 245# Service with host name and instance46NT_SRV_HST = 347# Service with host as remaining component48NT_SRV_XHST = 449# Unique ID50NT_UID = 551end5253# See:54# * https://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.xhtml#pre-authentication55# * https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/ae60c948-fda8-45c2-b1d1-a71b484dd1f75657module PreAuthType58PA_TGS_REQ = 159PA_ENC_TIMESTAMP = 260PA_PW_SALT = 361PA_ETYPE_INFO = 1162PA_PK_AS_REQ = 1663PA_PK_AS_REP = 1764PA_ETYPE_INFO2 = 1965PA_PAC_REQUEST = 12866PA_FOR_USER = 12967PA_SUPPORTED_ETYPES = 16568PA_PAC_OPTIONS = 16769KERB_SUPERSEDED_BY_USER = 17070end7172module AuthorizationDataType73AD_IF_RELEVANT = 174KDC_ISSUED = 475AND_OR = 576MANDATORY_FOR_KDC = 877INITIAL_VERIFIED_CAS = 978OSF_DCE = 6479SESAME = 6580end81end82end83end84end85868788