MCPcopy Create free account

hub / github.com/ly4k/Certipy / functions

Functions406 in github.com/ly4k/Certipy

↓ 1 callersMethodget_certificate_authorities
Query LDAP for certificate authorities. Returns: List of certificate authority entries
certipy/commands/find.py:215
↓ 1 callersMethodget_certificate_templates
Query LDAP for certificate templates. Returns: List of certificate template entries
certipy/commands/find.py:182
↓ 1 callersMethodget_config
Get CA configuration using the Remote Registry Protocol (RRP). This method attempts to retrieve the CA configuration using RRP
certipy/commands/ca.py:659
↓ 1 callersMethodget_config_rrp
Get CA configuration via the Remote Registry Protocol. Used as a fallback when CSRA fails. This method navigates the Windows
certipy/commands/ca.py:530
↓ 1 callersFunctionget_dynamic_endpoint
Resolve a dynamic endpoint for an RPC interface. Args: interface: RPC interface identifier (UUID) target: Target hostname or
certipy/lib/rpc.py:139
↓ 1 callersMethodget_issuance_policies
Query LDAP for issuance policies (OIDs). Returns: List of issuance policy entries
certipy/commands/find.py:236
↓ 1 callersFunctionget_kerberos_principal
Get Kerberos principal information from the KRB5CCNAME environment variable. Returns: Tuple containing (username, domain) or None if
certipy/lib/target.py:485
↓ 1 callersMethodget_oid_permissions
Extract OID permissions for output. Args: oid: Issuance policy object Returns: Dictionary of OID pe
certipy/commands/find.py:1823
↓ 1 callersMethodget_oid_properties
Extract OID properties for output. Args: oid: Issuance policy object oid_properties: Optional existing prope
certipy/commands/find.py:1613
↓ 1 callersMethodget_oid_vulnerabilities
Detect vulnerabilities in issuance policy OIDs. This method checks for Enterprise Security Configuration (ESC) vulnerabilities:
certipy/commands/find.py:2348
↓ 1 callersMethodget_output_for_text_and_json
Generate structured output for text and JSON formats. Args: templates: List of certificate templates cas: Li
certipy/commands/find.py:1066
↓ 1 callersMethodget_owned_sids
(self)
certipy/lib/bloodhound.py:30
↓ 1 callersFunctionget_parser
Factory function to get the appropriate parser. Args: parser_type: Type of parser to create domain: Domain name ca:
certipy/commands/parse.py:534
↓ 1 callersMethodget_public_key
Calculate the public key. Returns: Public key value (g^x mod p) Raises: ValueError: If p and g are
certipy/lib/pkinit.py:111
↓ 1 callersMethodget_template_output_for_csv
Convert certificate template data to CSV format. This function transforms nested certificate templates data into a flattened CSV for
certipy/commands/find.py:1384
↓ 1 callersMethodget_template_permissions
Extract template permissions for output. Args: template: Certificate template Returns: Dictionary o
certipy/commands/find.py:1650
↓ 1 callersMethodget_template_properties
Extract template properties for output. Args: template: Certificate template template_properties: Optional e
certipy/commands/find.py:1519
↓ 1 callersMethodget_template_vulnerabilities
Detect vulnerabilities in certificate templates. This method checks for various Enterprise Security Configuration (ESC) vulnerabilit
certipy/commands/find.py:1877
↓ 1 callersFunctionhandle_rpc_retrieve_response
Process the RPC certificate retrieval response. Args: response: The RPC response dictionary Returns: Certificate object
certipy/lib/req.py:273
↓ 1 callersMethodissue
Issue (approve) a pending certificate request. Returns: True if successful, False otherwise
certipy/commands/ca.py:687
↓ 1 callersMethodjson_to_configuration
Convert a JSON configuration back to a usable LDAP configuration. Converts hexadecimal strings back to binary data for LDAP operatio
certipy/commands/template.py:281
↓ 1 callersMethodkerberos_authentication
Authenticate to Kerberos using PKINIT with a certificate. Args: username: Username to authenticate as domain
certipy/commands/auth.py:548
↓ 1 callersMethodldap_authentication
Authenticate to LDAP using a certificate. Args: domain: Domain to authenticate to Returns: True if
certipy/commands/auth.py:510
↓ 1 callersMethodlist_templates
List templates enabled on the CA. Prints the list of templates to stdout.
certipy/commands/ca.py:814
↓ 1 callersMethodload_ca_certificate_and_key
Load the CA certificate and private key from the PFX file. Returns: Tuple of (CA private key, CA certificate) R
certipy/commands/forge.py:181
↓ 1 callersFunctionload_certificate_file
Load certificate data from a file. Args: file_path: Path to certificate file Returns: Certificate data as bytes
certipy/commands/cert.py:33
↓ 1 callersMethodload_configuration
Load a template configuration from a JSON file. Args: configuration_path: Path to the configuration JSON file R
certipy/commands/template.py:307
↓ 1 callersFunctionload_key_file
Load private key data from a file. Args: file_path: Path to private key file Returns: Private key data as bytes
certipy/commands/cert.py:59
↓ 1 callersFunctionmain
()
certipy/entry.py:14
↓ 1 callersFunctionnow_ticks
Get the current time in Windows ticks (100ns intervals since Jan 1, 1601 UTC). Used for creating timestamps in Key Credential objects.
certipy/commands/shadow.py:774
↓ 1 callersMethodoid_has_vulnerable_acl
Check if the OID has vulnerable permissions for the current user. Args: oid: Issuance policy OID to analyze Ret
certipy/commands/find.py:2390
↓ 1 callersMethodparse
Parse certificate templates from a file. Args: file: Path to the file containing template data
certipy/commands/parse.py:144
↓ 1 callersFunctionparse_certificate
Parse certificate data from PEM or DER format. Args: cert_data: Raw certificate data Returns: Parsed certificate object
certipy/commands/cert.py:85
↓ 1 callersFunctionparse_key
Parse private key data from PEM or DER format. Args: key_data: Raw private key data Returns: Parsed private key object
certipy/commands/cert.py:107
↓ 1 callersFunctionprint_certificate_authentication_information
Display all authentication-related information found in a certificate. This function extracts and prints various identity methods used in a
certipy/lib/certificate.py:199
↓ 1 callersFunctionprivate_key_to_ms_blob
Convert RSA private key to Microsoft BLOB format. Args: private_key: RSA private key Returns: Microsoft BLOB format key
certipy/lib/certificate.py:545
↓ 1 callersMethodremove_manager
Remove certificate manager rights from a user. Args: manager: Username to remove as a manager Returns:
certipy/commands/ca.py:1150
↓ 1 callersMethodremove_officer
Remove certificate officer rights from a user. Args: officer: Username to remove as an officer Returns:
certipy/commands/ca.py:1123
↓ 1 callersMethodrequest
Request a new certificate for the relayed user. Returns: Tuple of (PFX data, filename) on success, False on failure
certipy/commands/relay.py:703
↓ 1 callersFunctionresolve_type
(labels: frozenset[str])
certipy/lib/bloodhound.py:8
↓ 1 callersMethodretrieve
Retrieve a certificate by request ID. Returns: True on success, False on failure
certipy/commands/relay.py:676
↓ 1 callersMethodretrieve
Retrieve a certificate by request ID. Returns: True if successful, False otherwise
certipy/lib/req.py:1368
↓ 1 callersMethodretry_with_auth
Retry the request with NTLM authentication. Implements the complete NTLM authentication flow: 1. Send Type 1 (Negotiate) mes
certipy/lib/ntlm.py:366
↓ 1 callersMethodretry_with_auth
Retry the request with Kerberos authentication. This method adds Kerberos SPNEGO authentication header to the request. Args
certipy/lib/kerberos.py:520
↓ 1 callersFunctionsign_authpack
Create a signed CMS structure containing the AuthPack. Args: data: The AuthPack data to sign key: RSA private key for signin
certipy/lib/pkinit.py:149
↓ 1 callersFunctionspan_to_str
Convert a time span in seconds to a human-readable string. The function converts the span to the largest appropriate unit (years, months
certipy/lib/time.py:75
↓ 1 callersMethodstart
Start the relay server and wait for connections.
certipy/commands/relay.py:971
↓ 1 callersMethodtemplate_has_vulnerable_acl
Check if the template has vulnerable permissions for the current user. Args: template: Certificate template to analyze
certipy/commands/find.py:2060
↓ 1 callersFunctionunpack_data
Unpack binary data into a list of (field_type, field_value) tuples. This function parses the Key Credential binary format by reading fields
certipy/commands/shadow.py:659
↓ 1 callersMethodwrite_configuration
Apply a new configuration to a certificate template. If no configuration file is provided, applies the default vulnerable co
certipy/commands/template.py:373
Method__init__
Initialize the Shadow Authentication module. Args: target: Target information including domain, username, and authentica
certipy/commands/shadow.py:50
Method__init__
Initialize account management with target and account options. Args: target: Target environment information (domain, cre
certipy/commands/account.py:39
Method__init__
Initialize the LDAP shell. Args: tcp_shell: Shell to use for I/O domain_dumper: Domain information provider
certipy/commands/auth.py:82
Method__init__
Initialize with domain root. Args: root: LDAP root path (e.g., DC=contoso,DC=com)
certipy/commands/auth.py:134
Method__init__
Initialize authentication parameters. Args: target: Target information (domain, DC IP, etc.) pfx: Path to PF
certipy/commands/auth.py:182
Method__init__
Initialize the certificate template parser. Args: domain: Domain name for the templates (default: UNKNOWN) c
certipy/commands/parse.py:42
Method__init__
Initialize the certificate forgery parameters. Args: ca_pfx: Path to the CA certificate/private key in PFX format
certipy/commands/forge.py:74
Method__init__
Initialize the HTTP relay server. Args: adcs_relay: The parent Relay object args: Arguments to pass to the p
certipy/commands/relay.py:76
Method__init__
Initialize the RPC relay server. Args: serverConfig: NTLMRelayxConfig object with relay settings target: Tar
certipy/commands/relay.py:315
Method__init__
Initialize the HTTP attack client. Args: adcs_relay: The parent Relay object args: Arguments to pass to the
certipy/commands/relay.py:403
Method__init__
Initialize the RPC attack client. Args: adcs_relay: The parent Relay object config: NTLMRelayxConfig object
certipy/commands/relay.py:601
Method__init__
( self, target: Target, json: bool = False, csv: bool = False, text: b
certipy/commands/find.py:63
Method__init__
( self, error_string: Any = None, error_code: Any = None, packet: Any = None )
certipy/commands/ca.py:72
Method__init__
(self, interface: IRemUnknown2)
certipy/commands/ca.py:282
Method__init__
(self, interface: IRemUnknown2)
certipy/commands/ca.py:293
Method__init__
(self, interface: IRemUnknown2)
certipy/commands/ca.py:304
Method__init__
Initialize a CA configuration object. Args: active_policy: Name of the active policy module (typically CertificateAuthor
certipy/commands/ca.py:1460
Method__init__
Initialize a Template object for certificate template operations. Args: target: Target domain information te
certipy/commands/template.py:157
Method__init__
Initialize a new DH instance with random private key.
certipy/lib/pkinit.py:89
Method__init__
Initialize a security descriptor parser. Args: security_descriptor: Binary representation of a security descriptor
certipy/lib/security.py:41
Method__init__
Initialize the extended strategy with a connection. Args: connection: The ExtendedLdapConnection to use
certipy/lib/ldap.py:157
Method__init__
Initialize an extended LDAP connection with the specified target. Args: target: Target object containing connection deta
certipy/lib/ldap.py:298
Method__init__
( self, user: str, password: str, host: str = "localhost", port: int = 7687 )
certipy/lib/bloodhound.py:16
Method__init__
Initialize the ICertRequestD interface. Args: interface: IRemUnknown2 interface from DCOM connection
certipy/lib/req.py:174
Method__init__
Initialize the DCERPCSessionError. Args: error_string: Error description error_code: Numeric error code
certipy/lib/req.py:192
Method__init__
Initialize the request interface. Args: parent: The parent Request object
certipy/lib/req.py:231
Method__init__
Initialize the DCOM request interface. Args: parent: The parent Request object
certipy/lib/req.py:778
Method__init__
Initialize the RPC request interface. Args: parent: The parent Request object
certipy/lib/req.py:904
Method__init__
Initialize the Web Enrollment request interface. Args: parent: The parent Request object
certipy/lib/req.py:1060
Method__init__
Initialize a Target with the specified connection parameters. Args: resolver: DNS resolver for hostname resolution
certipy/lib/target.py:35
Method__init__
Initialize a new DNS resolver with default settings.
certipy/lib/target.py:348
Method__init__
Initialize the formatter with a simple format string. The format uses a custom 'bullet' attribute added during formatting.
certipy/lib/logger.py:60
Method__init__
Initialize the NTLM authentication handler. Args: target: Target object containing connection and authentication details
certipy/lib/ntlm.py:318
Method__init__
(self, flags: int, session_key: bytes)
certipy/lib/ntlm.py:500
Method__init__
Initialize a mechanism independent token. Args: data: Token data oid: Object identifier for the authenticati
certipy/lib/kerberos.py:107
Method__init__
Initialize the KerberosCipher object. Args: cipher: Cipher class for encryption/decryption session_key: Sess
certipy/lib/kerberos.py:217
Method__init__
Initialize the Kerberos authentication handler. Args: target: Target object containing connection and authentication det
certipy/lib/kerberos.py:480
Method__init__
Initialize a registry entry. Args: **kwargs: Key-value pairs to initialize the entry with
certipy/lib/registry.py:31
Method__init__
Initialize a registry connection. Args: domain: Domain name for the connection sids: List of security identi
certipy/lib/registry.py:77
Method__repr__
String representation of the Target object.
certipy/lib/target.py:338
Method__repr__
(self)
certipy/lib/structs.py:82
Method__repr__
(self)
certipy/lib/structs.py:146
Method__str__
(self)
certipy/commands/ca.py:77
Method__str__
Format the error message with translated error code. Returns: Human-readable error message
certipy/lib/req.py:205
Method__str__
Smart string representation that handles combinations gracefully. Returns: Human-readable string representation of the f
certipy/lib/structs.py:55
Method__str__
Smart string representation that handles combinations gracefully. Returns: Human-readable string representation of the f
certipy/lib/structs.py:119
Method_get_user
Helper function to search for a user, with caching.
certipy/lib/ldap.py:1090
Method_parse_aces
Parse the access control entries from the security descriptor. This method extracts both standard rights and extended rights.
certipy/lib/security.py:74
Method_parse_aces
Parse the access control entries from the security descriptor. CA security descriptors have a simpler structure than AD security des
certipy/lib/security.py:154
Method_read_pfx
(data: bytes)
certipy/commands/ca.py:1276
← previousnext →201–300 of 406, ranked by callers