Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ProtonMail/ct-monitor
/ functions
Functions
14 in github.com/ProtonMail/ct-monitor
⨍
Functions
14
◇
Types & classes
2
↓ 3 callers
Function
format_date
(epoch, certificate_date=False)
ct-monitor.py:82
↓ 3 callers
Function
notify
This function notifies users about results of scans, and when a scan finishes. Edit the TEMPLATE variable to customize notification messa
ct-monitor.py:36
↓ 1 callers
Method
add_certifacte_to_db
Adds certificate entry to the DB. Input:- ctr_hash: CTR Hash for the certificate. domain: Domain name. cert_d
ct-monitor.py:243
↓ 1 callers
Method
add_to_scans_log
Adds log entry for scans. Input:- scan_type: The scan type. new_identified_Certs_count: The sum of new identified cer
ct-monitor.py:260
↓ 1 callers
Method
certificates_of_domain_query_parser
Parses the first step response, and returns the output as dict. Input: response: the response of the request. Output:
ct-monitor.py:101
↓ 1 callers
Method
check_if_certifacte_in_db
Checks if the certificate exists in the DB. Input:- ctr_hash: CTR Hash for the certificate. Output:- returns:
ct-monitor.py:226
↓ 1 callers
Method
db_initialize
Initialize the DB. Input: None Output: return: 0: if no errors occurred.
ct-monitor.py:213
↓ 1 callers
Method
get_certificate_details
Returns certificate details of a certificate. Input: ctr_hash: CTR Hash for the certificate. Output: a dict t
ct-monitor.py:162
↓ 1 callers
Method
get_certificates_of_domain
Gets a list of CTR hashes associated with the domain. Input: domain: the domain to scan. Output: a list of CT
ct-monitor.py:128
↓ 1 callers
Function
main
()
ct-monitor.py:312
↓ 1 callers
Function
notification_handler
This function should be customized based off the user needs for notification channel.
ct-monitor.py:26
↓ 1 callers
Function
run
The responsible function for the scan. Input:- domain: The domain for the scan. Optional Input: initialize_scan: if set to True,
ct-monitor.py:277
Method
__init__
self.timeout: The request's timeout. self.user_agent: The request's HTTP User-Agent. self.headers: The requests HTTP headers.
ct-monitor.py:90
Method
__init__
(self, db)
ct-monitor.py:208