diff options
author | josef <josef.gson@gmail.com> | 2015-10-19 12:08:03 +0200 |
---|---|---|
committer | josef <josef.gson@gmail.com> | 2015-10-19 12:08:03 +0200 |
commit | cc06b25e43deeee70418a1ee9f6271ed9fed0c83 (patch) | |
tree | c60aa3cf27c70a2fd5f9ff1301ff35b210e769ab /monitor/josef_experimental.py | |
parent | db5fd75ac73f81721904b94408b7984482791179 (diff) |
adding script for inclusion checking by submitting to all logs and checking timestamp age
Diffstat (limited to 'monitor/josef_experimental.py')
-rwxr-xr-x | monitor/josef_experimental.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/monitor/josef_experimental.py b/monitor/josef_experimental.py index d64012d..cef06a6 100755 --- a/monitor/josef_experimental.py +++ b/monitor/josef_experimental.py @@ -70,24 +70,24 @@ def update_roots(log): if __name__ == '__main__': - dbdir = "tmpdb/" + # dbdir = "tmpdb/" # entry = get_entries(ctlogs[0]["url"], 1,1)["entries"] # print extract_original_entry(entry[0]) - for url in [CTLOGS[6]["url"]]: + # for url in [CTLOGS[6]["url"]]: # for url in [CTLOGS[0]["url"],CTLOGS[5]["url"],CTLOGS[6]["url"]]: # for log in CTLOGS: # url = log["url"] # url = CTLOGS[1]["url"] - entries = get_entries(url, 3638637,3638637)["entries"] + # entries = get_entries(url, 3638637,3638637)["entries"] # entries = get_entries(url, first, last)["entries"] - tmp_cert_data = [] - for item in entries: - tmp_data = check_domain(item, url) - entry_hash = get_leaf_hash(base64.b64decode(item["leaf_input"])) - if tmp_data: - tmp_data["leaf_hash"] = base64.b64encode(entry_hash) - tmp_cert_data.append(tmp_data) - print tmp_data + # tmp_cert_data = [] + # for item in entries: + # tmp_data = check_domain(item, url) + # entry_hash = get_leaf_hash(base64.b64decode(item["leaf_input"])) + # if tmp_data: + # tmp_data["leaf_hash"] = base64.b64encode(entry_hash) + # tmp_cert_data.append(tmp_data) + # print tmp_data # new_leafs.append(entry_hash) # if self.dbdir:/ |