Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rex/proto/kerberos/model.rb
Views: 11704
# -*- 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# From padata - https://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.xhtml5455module PreAuthType56PA_TGS_REQ = 157PA_ENC_TIMESTAMP = 258PA_PW_SALT = 359PA_ETYPE_INFO = 1160PA_PK_AS_REQ = 1661PA_PK_AS_REP = 1762PA_ETYPE_INFO2 = 1963PA_PAC_REQUEST = 12864PA_FOR_USER = 12965PA_SUPPORTED_ETYPES = 16566PA_PAC_OPTIONS = 16767end6869module AuthorizationDataType70AD_IF_RELEVANT = 171KDC_ISSUED = 472AND_OR = 573MANDATORY_FOR_KDC = 874INITIAL_VERIFIED_CAS = 975OSF_DCE = 6476SESAME = 6577end78end79end80end81end82838485