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/ms_crtd.rb
Views: 11655
# -*- coding: binary -*-1# frozen_string_literal: true23module Rex::Proto4module MsCrtd5# see: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-crtd/4c6950e4-1dc2-4ae3-98c3-b8919bb7382267# [2.26 msPKI-Enrollment-Flag Attribute](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-crtd/ec71fd43-61c2-407b-83c9-b52272dec8a1)8CT_FLAG_INCLUDE_SYMMETRIC_ALGORITHMS = 0x000000019CT_FLAG_PEND_ALL_REQUESTS = 0x0000000210CT_FLAG_PUBLISH_TO_KRA_CONTAINER = 0x0000000411CT_FLAG_PUBLISH_TO_DS = 0x0000000812CT_FLAG_AUTO_ENROLLMENT_CHECK_USER_DS_CERTIFICATE = 0x0000001013CT_FLAG_AUTO_ENROLLMENT = 0x0000002014CT_FLAG_PREVIOUS_APPROVAL_VALIDATE_REENROLLMENT = 0x0000004015CT_FLAG_USER_INTERACTION_REQUIRED = 0x0000010016CT_FLAG_REMOVE_INVALID_CERTIFICATE_FROM_PERSONAL_STORE = 0x0000040017CT_FLAG_ALLOW_ENROLL_ON_BEHALF_OF = 0x0000080018CT_FLAG_ADD_OCSP_NOCHECK = 0x0000100019CT_FLAG_ENABLE_KEY_REUSE_ON_NT_TOKEN_KEYSET_STORAGE_FULL = 0x0000200020CT_FLAG_NOREVOCATIONINFOINISSUEDCERTS = 0x0000400021CT_FLAG_INCLUDE_BASIC_CONSTRAINTS_FOR_EE_CERTS = 0x0000800022CT_FLAG_ALLOW_PREVIOUS_APPROVAL_KEYBASEDRENEWAL_VALIDATE_REENROLLMENT = 0x0001000023CT_FLAG_ISSUANCE_POLICIES_FROM_REQUEST = 0x0002000024CT_FLAG_SKIP_AUTO_RENEWAL = 0x000400002526# [2.27 msPKI-Private-Key-Flag Attribute](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-crtd/f6122d87-b999-4b92-bff8-f465e8949667)27CT_FLAG_REQUIRE_PRIVATE_KEY_ARCHIVAL = 0x0000000128CT_FLAG_EXPORTABLE_KEY = 0x0000001029CT_FLAG_STRONG_KEY_PROTECTION_REQUIRED = 0x0000002030CT_FLAG_REQUIRE_ALTERNATE_SIGNATURE_ALGORITHM = 0x0000004031CT_FLAG_REQUIRE_SAME_KEY_RENEWAL = 0x0000008032CT_FLAG_USE_LEGACY_PROVIDER = 0x0000010033CT_FLAG_ATTEST_NONE = 0x0000000034CT_FLAG_ATTEST_REQUIRED = 0x0000200035CT_FLAG_ATTEST_PREFERRED = 0x0000100036CT_FLAG_ATTESTATION_WITHOUT_POLICY = 0x0000400037CT_FLAG_EK_TRUST_ON_USE = 0x0000020038CT_FLAG_EK_VALIDATE_CERT = 0x0000040039CT_FLAG_EK_VALIDATE_KEY = 0x0000080040CT_FLAG_HELLO_LOGON_KEY = 0x002000004142# [2.28 msPKI-Certificate-Name-Flag Attribute](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-crtd/1192823c-d839-4bc3-9b6b-fa8c53507ae1)43CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT = 0x0000000144CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT_ALT_NAME = 0x0001000045CT_FLAG_SUBJECT_ALT_REQUIRE_DOMAIN_DNS = 0x0040000046CT_FLAG_SUBJECT_ALT_REQUIRE_SPN = 0x0080000047CT_FLAG_SUBJECT_ALT_REQUIRE_DIRECTORY_GUID = 0x0100000048CT_FLAG_SUBJECT_ALT_REQUIRE_UPN = 0x0200000049CT_FLAG_SUBJECT_ALT_REQUIRE_EMAIL = 0x0400000050CT_FLAG_SUBJECT_ALT_REQUIRE_DNS = 0x0800000051CT_FLAG_SUBJECT_REQUIRE_DNS_AS_CN = 0x1000000052CT_FLAG_SUBJECT_REQUIRE_EMAIL = 0x2000000053CT_FLAG_SUBJECT_REQUIRE_COMMON_NAME = 0x4000000054CT_FLAG_SUBJECT_REQUIRE_DIRECTORY_PATH = 0x8000000055CT_FLAG_OLD_CERT_SUPPLIES_SUBJECT_AND_ALT_NAME = 0x000000085657end58end596061