Created
February 19, 2026 10:53
-
-
Save yogo1212/856eef9086f11240d42000788c18c13b to your computer and use it in GitHub Desktop.
look up CT in Apple's log list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # "A5:C9:78:92:5D:57:46:17:82:87:0D:D8:89:66:0B:5C:55:64:8B:7D:00:40:F2:EC:07:68:51:D1:88:69:19:F7" | |
| hex_log_id="$1" | |
| base64_log_id="$(ruby -e 'require "base64"; puts Base64.encode64(ARGV[0].split(":").map {|s| s.to_i(16).chr }.join)' "$hex_log_id")" | |
| echo "base64: $base64_log_id" | |
| curl "https://valid.apple.com/ct/log_list/current_log_list.json" | jq ".operators[] | .logs, .tiled_logs | .[] | select(.log_id == \"$base64_log_id\")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment