MCPcopy Create free account

hub / github.com/ly4k/Certipy / functions

Functions406 in github.com/ly4k/Certipy

↓ 2 callersFunctionget_channel_binding_data
Generate channel binding token (CBT) from a server certificate. This implements the tls-server-end-point channel binding type as described
certipy/lib/channel_binding.py:7
↓ 2 callersFunctionget_channel_binding_data_from_response
Extract channel binding data from an HTTPX response. This function extracts the server certificate from an HTTPX response and generates
certipy/lib/channel_binding.py:50
↓ 2 callersFunctionget_channel_binding_data_from_ssl_socket
Extract channel binding data from an SSL socket. This function extracts the server certificate from an SSL socket and generates the chan
certipy/lib/channel_binding.py:93
↓ 2 callersMethodget_crl
Create a CRL distribution point extension. Args: crl: URI of the CRL distribution point (defaults to self.crl)
certipy/commands/forge.py:152
↓ 2 callersFunctionget_dce_rpc
Get a connected DCE RPC interface. This function attempts to connect to an RPC interface using either named pipes or dynamic endpoints.
certipy/lib/rpc.py:183
↓ 2 callersMethodget_exchange_certificate
Get the CA exchange certificate. Returns: CA exchange certificate Raises: Exception: If the certifi
certipy/commands/ca.py:508
↓ 2 callersFunctionget_kerberos_type1
Generate a Kerberos Type 1 authentication message (AP_REQ). Creates a SPNEGO token containing Kerberos AP_REQ that can be used for HTTP
certipy/lib/kerberos.py:576
↓ 2 callersFunctionget_object_sid_from_certificate_san_url
Extract a Security Identifier (SID) from a certificate's Subject Alternative Name (SAN) URL field. Microsoft AD CS can include SIDs in c
certipy/lib/certificate.py:304
↓ 2 callersFunctionget_object_sid_from_certificate_sid_extension
Extract a Security Identifier (SID) from a certificate's Microsoft-specific NTDS_CA_SECURITY_EXT extension. This extension is commonly u
certipy/lib/certificate.py:343
↓ 2 callersMethodget_templates
Get list of templates enabled on the CA. Returns: List of template names and their OIDs Returns False if the
certipy/commands/ca.py:778
↓ 2 callersFunctionntlm_authenticate
Generate an NTLMSSP Type 3 authentication message in response to a server challenge. Args: type1: The Type 1 negotiate message that
certipy/lib/ntlm.py:189
↓ 2 callersFunctionntlm_negotiate
Generate an NTLMSSP Type 1 negotiation message. Args: signing_required: Whether signing is required for the connection use_n
certipy/lib/ntlm.py:141
↓ 2 callersFunctionpem_to_cert
Convert PEM-encoded certificate to object.
certipy/lib/certificate.py:522
↓ 2 callersFunctionpem_to_key
Convert PEM-encoded private key to object.
certipy/lib/certificate.py:512
↓ 2 callersFunctionprint_certificate_identities
Print certificate identity information with appropriate formatting. Args: identities: List of tuples containing (identity_type, iden
certipy/lib/certificate.py:239
↓ 2 callersMethodremove
Remove a right from a user on the CA. Args: user: Username right: Right to remove (from CERTIFICATION_AUTHOR
certipy/commands/ca.py:1094
↓ 2 callersMethodrequest
Get the current request object. Returns: The current request object
certipy/commands/relay.py:944
↓ 2 callersMethodsave_configuration
Save the current configuration to a JSON file.
certipy/commands/template.py:341
↓ 2 callersMethodschannel_connect
(self)
certipy/lib/ldap.py:714
↓ 2 callersFunctionspan_to_filetime
Convert a time span in seconds to Windows FILETIME format. This function converts the time span to a 64-bit integer representing the num
certipy/lib/time.py:49
↓ 2 callersFunctionticks_to_datetime
Convert Windows ticks to a UTC datetime object. Args: ticks: Number of 100ns intervals since January 1, 1601 UTC Returns:
certipy/commands/shadow.py:791
↓ 2 callersMethodto_list
Decompose flag into list of individual flags. Returns: List of individual flag members
certipy/lib/structs.py:27
↓ 2 callersFunctiontruncate_key
Truncate a key to the specified size using SHA1 hashing. Args: value: Input key material keysize: Desired key size in bytes
certipy/commands/auth.py:144
↓ 2 callersFunctionweb_request
Request a certificate via the web enrollment interface. Args: session: HTTP session client username: Username for the certif
certipy/lib/req.py:507
↓ 2 callersFunctionwrite_output
Write data to a file or stdout. Args: data: Data to write output_path: Path to output file or None for stdout
certipy/commands/cert.py:129
↓ 1 callersMethod_apply_changes
Apply computed changes to a template configuration. Args: old_configuration: Current template configuration
certipy/commands/template.py:479
↓ 1 callersMethod_check_identity_mismatches
Check for mismatches between provided identity and certificate identity. Args: username: Provided username d
certipy/commands/auth.py:459
↓ 1 callersMethod_compute_changes
Compute the changes needed to update a template configuration. Args: old_configuration: Current template configuration
certipy/commands/template.py:425
↓ 1 callersMethod_decrypt
Decrypt LDAP message data using the appropriate cipher. Args: data: Encrypted data to decrypt Returns:
certipy/lib/ldap.py:357
↓ 1 callersMethod_decrypt_aes
Decrypt data using AES cipher. Args: data: Encrypted data to decrypt Returns: Decrypted plaintext
certipy/lib/kerberos.py:308
↓ 1 callersMethod_decrypt_rc4
Decrypt data using RC4 cipher. Args: data: Encrypted data to decrypt Returns: Decrypted plaintext
certipy/lib/kerberos.py:417
↓ 1 callersMethod_determine_template_capabilities
Determine template capabilities from EKU and flags. Args: template: Certificate template extended_key_usage:
certipy/commands/find.py:916
↓ 1 callersMethod_encode_length
Encode a length value in ASN.1 format. Args: length: Length value to encode Returns: ASN.1 encoded
certipy/lib/kerberos.py:170
↓ 1 callersMethod_encrypt
Encrypt LDAP message data using the appropriate cipher. Args: data: Plaintext data to encrypt Returns:
certipy/lib/ldap.py:332
↓ 1 callersMethod_encrypt_aes
Encrypt data using AES cipher. Args: data: Plaintext data to encrypt sequence_number: Message sequence numbe
certipy/lib/kerberos.py:265
↓ 1 callersMethod_encrypt_rc4
Encrypt data using RC4 cipher. Args: data: Plaintext data to encrypt sequence_number: Message sequence numbe
certipy/lib/kerberos.py:342
↓ 1 callersMethod_enumerate_templates
Enumerate available certificate templates from Web Enrollment.
certipy/commands/relay.py:456
↓ 1 callersMethod_flatten_ca_data
Flatten a nested CA dictionary for CSV output. Handles special cases like permissions dictionaries, web enrollment settings,
certipy/commands/find.py:1285
↓ 1 callersMethod_flatten_template_data
Flatten a nested template dictionary for CSV output. Handles special cases like permissions dictionaries, nested objects, an
certipy/commands/find.py:1463
↓ 1 callersMethod_get_ca_config_and_web_enrollment
Get CA configuration and web enrollment settings. Args: ca: Certificate authority object Returns: D
certipy/commands/find.py:475
↓ 1 callersFunction_handle_file_exists
Handle the case where a file already exists. Prompts the user to confirm overwriting or generates a new unique filename. If the user cho
certipy/lib/files.py:57
↓ 1 callersFunction_handle_policy_denial
Handle certificate request denied by policy. Args: session: HTTP session client request_id: The certificate request ID
certipy/lib/req.py:696
↓ 1 callersMethod_kerberos_login
Perform Kerberos authentication to LDAP server. Args: connection: LDAP connection object Raises: Ex
certipy/lib/ldap.py:837
↓ 1 callersMethod_link_cas_and_templates
Link certificate authorities to templates and vice versa. Args: cas: List of certificate authorities templat
certipy/commands/find.py:335
↓ 1 callersMethod_link_templates_and_policies
Link templates to their issuance policies and vice versa. Args: templates: List of certificate templates oid
certipy/commands/find.py:373
↓ 1 callersMethod_log_changes
Log the changes to be applied, grouped by operation type. Args: changes: Dictionary of changes to apply
certipy/commands/template.py:527
↓ 1 callersMethod_parse_aces
Parse the access control entries from the security descriptor.
certipy/lib/security.py:64
↓ 1 callersMethod_process_ca_certificate
Process CA certificate information. Args: ca: Certificate authority object
certipy/commands/find.py:595
↓ 1 callersMethod_process_ca_properties
Process certificate authority properties and security settings. Args: cas: List of certificate authorities
certipy/commands/find.py:435
↓ 1 callersMethod_process_template_flags
Process template flag attributes. Args: template: Certificate template
certipy/commands/find.py:837
↓ 1 callersMethod_process_template_policies
Process template policy attributes and extended key usage. Args: template: Certificate template
certipy/commands/find.py:884
↓ 1 callersMethod_process_template_properties
Process certificate template properties. Args: templates: List of certificate templates
certipy/commands/find.py:792
↓ 1 callersMethod_process_template_validity
Process template validity periods. Args: template: Certificate template
certipy/commands/find.py:814
↓ 1 callersMethod_request_certificate
Request a new certificate for the relayed user.
certipy/commands/relay.py:517
↓ 1 callersMethod_retrieve_certificate
Retrieve a certificate by request ID. Args: request_id: The ID of the certificate request to retrieve
certipy/commands/relay.py:494
↓ 1 callersMethod_run
Main attack logic - request or retrieve a certificate for the relayed user.
certipy/commands/relay.py:430
↓ 1 callersMethod_run
Main attack logic - request or retrieve a certificate for the relayed user.
certipy/commands/relay.py:650
↓ 1 callersMethod_save_output
Generate and save output in requested formats. Args: templates: List of certificate templates cas: List of c
certipy/commands/find.py:981
↓ 1 callersMethod_send_auth
Process and send authentication data to the target. Args: authenticateMessageBlob: The authentication message
certipy/commands/relay.py:255
↓ 1 callersFunction_write_to_stdout
Write data to stdout, encoding binary data as base64 if needed. Args: data: Data to output (binary data will be base64 encoded)
certipy/lib/files.py:83
↓ 1 callersMethodadd_manager
Add certificate manager rights for a user. Managers can manage CA configuration. Args: manager: Username to add
certipy/commands/ca.py:1137
↓ 1 callersMethodadd_officer
Add certificate officer rights for a user. Officers can approve/deny certificate requests. Args: officer: Userna
certipy/commands/ca.py:1108
↓ 1 callersMethodbackup
Create a backup of the CA key and certificate. Returns: True if successful, False otherwise
certipy/commands/ca.py:1304
↓ 1 callersFunctionbinary_data_from_dn_with_binary
Convert a DNWithBinary string to its binary representation. DNWithBinary format: "B:<length>:<hex_data>:<dn>" Example: "B:826:4e544c4d53
certipy/commands/shadow.py:690
↓ 1 callersMethodbuild_from_template
Build a certificate using an existing certificate as a template. Args: ca_private_key: CA private key ca_pub
certipy/commands/forge.py:358
↓ 1 callersMethodbuild_new_certificate
Build a new certificate without a template. Args: ca_private_key: CA private key ca_public_key: CA public ke
certipy/commands/forge.py:493
↓ 1 callersFunctionbuild_pkinit_as_req
Build a PKINIT AS-REQ message. Args: username: Client username domain: Domain/realm name key: RSA private key for si
certipy/lib/pkinit.py:225
↓ 1 callersMethodca_has_vulnerable_acl
Check if the CA has vulnerable permissions for the current user. Args: ca: Certificate authority to analyze Ret
certipy/commands/find.py:2275
↓ 1 callersMethodcan_user_enroll_in_ca
Check if the current user can enroll in the CA. Args: ca: CA to analyze Returns: Tuple of (can_enro
certipy/commands/find.py:2316
↓ 1 callersMethodcan_user_enroll_in_template
Check if the current user can enroll in the template. Args: template: Certificate template to analyze Returns:
certipy/commands/find.py:2113
↓ 1 callersMethodcheck_channel_binding
Check if a Certificate Authority web enrollment endpoint enforces channel binding (EPA). This method tests HTTPS web enrollment auth
certipy/commands/find.py:684
↓ 1 callersMethodclear
Clear all Key Credentials for a user. Returns: True on success, False on failure
certipy/commands/shadow.py:467
↓ 1 callersFunctioncompute_response
Compute NTLMv2 response based on the provided parameters. Args: server_challenge: Challenge received from the server client_
certipy/lib/ntlm.py:54
↓ 1 callersMethodconfiguration_to_json
Convert a template configuration to a JSON string. Converts binary attribute values to their hexadecimal representation for
certipy/commands/template.py:211
↓ 1 callersMethodcreate
Create a DnsResolver with specified parameters. Args: target: Target object which may contain DC IP information
certipy/lib/target.py:382
↓ 1 callersFunctioncreate_esc1_template
ESC1 vulnerable template configuration with full control for the passed sid. This configuration creates a template that allows `sid` to enrol
certipy/commands/template.py:61
↓ 1 callersFunctioncreate_on_behalf_of
Create a certificate request on behalf of another user. Args: request: Original request data on_behalf_of: Username to reque
certipy/lib/certificate.py:1170
↓ 1 callersFunctioncreate_renewal
Create a certificate renewal request. Args: request: Original request data cert: Certificate being renewed key: Priv
certipy/lib/certificate.py:1063
↓ 1 callersFunctioncreate_sd
Create a security descriptor setting `sid` as owner, and also add an ACE of GenericAll for `sid`, and also add an ACE of GenericRead for
certipy/lib/security.py:220
↓ 1 callersMethodcreate_self_signed_ca
Create a self-signed CA certificate. This method generates a self-signed CA certificate and saves it to the specified output file.
certipy/commands/forge.py:670
↓ 1 callersMethoddeny
Deny a pending certificate request. Returns: True if successful, False otherwise
certipy/commands/ca.py:731
↓ 1 callersFunctionder_to_key
Convert DER-encoded private key to object.
certipy/lib/certificate.py:507
↓ 1 callersFunctionder_to_pem
Convert DER-encoded data to PEM format. Args: der: DER-encoded binary data pem_type: PEM header/footer type (e.g., "CERTIFIC
certipy/lib/certificate.py:482
↓ 1 callersMethoddetermine_output_filename
Determine the output filename for the forged certificate. Args: id_type: Identification type (UPN, DNS) id_v
certipy/commands/forge.py:611
↓ 1 callersMethoddisable
Disable a template on the CA. Convenience method that calls enable() with disable=True. Returns: True if success
certipy/commands/ca.py:924
↓ 1 callersMethodexchange
Perform key exchange with peer's public key. Args: peer_public_key: Peer's public key value Returns:
certipy/lib/pkinit.py:124
↓ 1 callersFunctionfiletime_to_span
Convert Windows FILETIME to time span in seconds. Windows FILETIME is a 64-bit value representing the number of 100-nanosecond intervals
certipy/lib/time.py:23
↓ 1 callersMethodfinish_run
Clean up after attack completion.
certipy/commands/relay.py:772
↓ 1 callersMethodforge
Forge a certificate with the specified parameters. This is the main method that performs the certificate forgery process. R
certipy/commands/forge.py:637
↓ 1 callersMethodformat
Format the log record by adding an appropriate bullet point. Args: record: The log record to format Returns:
certipy/lib/logger.py:68
↓ 1 callersMethodfrom_dict
Create a DH instance from a dictionary of parameters. Args: dhp: Dictionary containing 'p' and 'g' keys Returns
certipy/lib/pkinit.py:98
↓ 1 callersMethodgenerate_key_credential
Generate a new certificate and Key Credential object. Args: subject: Certificate subject name Returns:
certipy/commands/shadow.py:167
↓ 1 callersFunctionget_account_type
Determine the type of Active Directory account based on sAMAccountType and objectClass. Args: entry: LDAP entry containing account a
certipy/lib/ldap.py:54
↓ 1 callersFunctionget_authentication_method
Get the authentication method from the WWW-Authenticate header. Args: authenticate_header: The WWW-Authenticate header value Re
certipy/lib/http.py:4
↓ 1 callersMethodget_backup
Retrieve CA backup file from the target. Returns: PFX data as bytes or None if retrieval fails
certipy/commands/ca.py:1204
↓ 1 callersMethodget_ca_output_for_csv
Convert Certificate Authority data to CSV format. This function transforms nested CA data into a flattened CSV format. It ha
certipy/commands/find.py:1217
↓ 1 callersMethodget_ca_permissions
Extract CA permissions for output. Args: ca: Certificate authority Returns: Dictionary of CA permis
certipy/commands/find.py:1775
↓ 1 callersMethodget_ca_properties
Extract CA properties for output. Args: ca: Certificate authority ca_properties: Optional existing propertie
certipy/commands/find.py:1572
↓ 1 callersMethodget_ca_vulnerabilities
Detect vulnerabilities in certificate authorities. This method checks for various Enterprise Security Configuration (ESC) vulnerabil
certipy/commands/find.py:2168
↓ 1 callersMethodget_cax
Retrieve the CAX (Exchange) certificate. Returns: CAX certificate in DER format if successful, False otherwise
certipy/lib/req.py:1531
← previousnext →101–200 of 406, ranked by callers