cd /news/ai-tools/find-gov-domain-strings-in-bundled-c… · home › topics › ai-tools › article
[ARTICLE · art-147790] src=gist.github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Find .gov domain strings in bundled Claude Code binaries on macOS. Requires Python 3.

A developer published a short shell script that scans the bundled Claude Code binaries on macOS for embedded .gov domain strings, using Python 3 to read the local files under the Claude application support directory. The script performs no network requests and does not execute Claude, printing any matching hostnames it finds or a message if the binary is absent.

key takeaway

The script globs ~/Library/Application Support/Claude/claude-code/*/*/claude.app/Contents/MacOS/claude and regex-matches raw bytes for hosts ending in ic.gov or sgov.gov, so it can enumerate embedded government domains without running Claude or making network calls.

by read1 min views12 publishedOct 8, 2026

| | #!/bin/sh | | | # macOS + Python 3. Finds .gov domain strings in bundled Claude Code binaries. | | | # Reads local files only; does not run Claude or make network requests. | | | python3 - <<'PY' | | | from pathlib import Path | | | import re |

|  | root = Path.home() / "Library/Application Support/Claude/claude-code" | 
|  | files = sorted(root.glob("*/*/claude.app/Contents/MacOS/claude")) | 

| | if not files: | | | print("Bundled Claude Code binary not found at this path.") | | | for f in files: |

|  | hosts = sorted(set(re.findall( | 
|  | rb"(?:[a-z0-9-]+\.)+(?:ic\.gov\|sgov\.gov)", f.read_bytes() | 
|  | ))) | 
|  | print(f"\n{f}") | 
|  | print("\n".join(h.decode() for h in hosts) or "No matching strings.") | 

| | PY |

── more in #ai-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/find-gov-domain-stri…] indexed:0 read:1min 2026-10-08 · —