ct-monitor icon indicating copy to clipboard operation
ct-monitor copied to clipboard

Error "list index out of range"

Open apraile opened this issue 3 years ago • 2 comments

Recently the tool gives the following error:

$ python /usr/local/bin/ct-monitor.py --domains proton.me --db /var/logs/ct_monitor.db --initial-scan
list index out of range

Thanks for the tool :heart_decoration:

apraile avatar May 22 '22 09:05 apraile

Same error "list index out of range"

PrashansaChaudhary avatar Jul 14 '25 05:07 PrashansaChaudhary

TLDR: This tool will not work anymore, because the source it used for CT is gone.

I looked into this. The actual problem is masked due to catching all exceptions. The real exception is:

  File "/home/fboender/Projects/other/ct-monitor/./ct-monitor.py", line 152, in get_certificates_of_domain
    resp = json.loads(resp.text.split("\n\n")[1])
                      ~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

So something appears to be wrong with the response received from a web call. Viewing the raw response, I see:

<html>[..]<title>Error 404 (Not Found)!!1</title>

The URL this script is calling no longer exists (https://transparencyreport.google.com/transparencyreport/api/v3/httpsreport/ct/certsearch/page?include_expired=true&include_subdomains=true&domain={0}&p={1})

So I'm assuming this won't be fixed anytime soon.

fboender avatar Aug 20 '25 13:08 fboender