Path: blob/master/lib/rex/proto/kerberos/model.rb
33399 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 = 55152NT_ENTERPRISE = 1053end5455module PaS4uX509UserOptions56CHECK_LOGON_RESTRICTIONS = 0x4000000057SIGN_REPLY = 0x2000000058NT_AUTH_POLICY_NOT_REQUIRED = 0x1000000059UNCONDITIONAL_DELEGATION = 0x0800000060end6162# See:63# * https://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.xhtml#pre-authentication64# * https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/ae60c948-fda8-45c2-b1d1-a71b484dd1f76566module PreAuthType67PA_TGS_REQ = 168PA_ENC_TIMESTAMP = 269PA_PW_SALT = 370PA_ETYPE_INFO = 1171PA_PK_AS_REQ = 1672PA_PK_AS_REP = 1773PA_ETYPE_INFO2 = 1974PA_PAC_REQUEST = 12875PA_FOR_USER = 12976PA_S4U_X509_USER = 13077KEY_LIST_REP = 16278PA_SUPPORTED_ETYPES = 16579PA_PAC_OPTIONS = 16780KERB_SUPERSEDED_BY_USER = 17081DMSA_KEY_PACKAGE = 17182end8384module AuthorizationDataType85AD_IF_RELEVANT = 186KDC_ISSUED = 487AND_OR = 588MANDATORY_FOR_KDC = 889INITIAL_VERIFIED_CAS = 990OSF_DCE = 6491SESAME = 6592end93end94end95end96end979899100