Path: blob/master/lib/rex/proto/kerberos/model.rb
58151 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'29SHA512 = '2.16.840.1.101.3.4.2.3'30RSAWithSHA1 = '1.2.840.113549.1.1.5'31RSAWithSHA256 = '1.2.840.113549.1.1.11'32RSAWithSHA512 = '1.2.840.113549.1.1.13'33PkinitAuthData = '1.3.6.1.5.2.3.1'34SignedData = '1.2.840.113549.1.7.2'35end3637# From Principal38# https://datatracker.ietf.org/doc/html/rfc4120#section-6.23940module NameType41# Name type not known42NT_UNKNOWN = 043# The name of the principal44NT_PRINCIPAL = 145# Service and other unique instances46NT_SRV_INST = 247# Service with host name and instance48NT_SRV_HST = 349# Service with host as remaining component50NT_SRV_XHST = 451# Unique ID52NT_UID = 55354NT_ENTERPRISE = 1055end5657module PaS4uX509UserOptions58CHECK_LOGON_RESTRICTIONS = 0x4000000059SIGN_REPLY = 0x2000000060NT_AUTH_POLICY_NOT_REQUIRED = 0x1000000061UNCONDITIONAL_DELEGATION = 0x0800000062end6364# See:65# * https://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.xhtml#pre-authentication66# * https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/ae60c948-fda8-45c2-b1d1-a71b484dd1f76768module PreAuthType69PA_TGS_REQ = 170PA_ENC_TIMESTAMP = 271PA_PW_SALT = 372PA_ETYPE_INFO = 1173PA_PK_AS_REQ = 1674PA_PK_AS_REP = 1775PA_ETYPE_INFO2 = 1976PA_PAC_REQUEST = 12877PA_FOR_USER = 12978PA_S4U_X509_USER = 13079KEY_LIST_REP = 16280PA_SUPPORTED_ETYPES = 16581PA_PAC_OPTIONS = 16782KERB_SUPERSEDED_BY_USER = 17083DMSA_KEY_PACKAGE = 17184end8586module AuthorizationDataType87AD_IF_RELEVANT = 188KDC_ISSUED = 489AND_OR = 590MANDATORY_FOR_KDC = 891INITIAL_VERIFIED_CAS = 992OSF_DCE = 6493SESAME = 6594end95end96end97end98end99100101102