#!/bin/bash # registry_check.sh — run 12 US state business-registry searches with one plain GET each. # # WHAT IT DOES: sends one HTTP GET to the public business-search page (or search API) # of 12 US state secretaries of state, with a default curl user agent, no cookies, # no JavaScript, following redirects. It prints the HTTP status, the byte count, and # the first 90 bytes of the body for each. # # WHAT IT DOES NOT PROVE: a refusal here only shows what THAT client got from THAT # endpoint at THAT moment. It does not show the registry is closed to everyone, or # closed to a browser, or that no bulk/API route exists. It also does not show that # a name is not registered. Read a non-answer as "I could not ask", never as "no". # # Usage: bash registry_check.sh # Needs: curl, sed, grep. No keys, no account, no writes. ~2 minutes. # # Background: https://telegra.ph/Twelve-US-business-registries-one-GET-each-seven-refusals-none-of-them-a-no-record-11-12 UA="curl/8.5.0" probe () { name="$1"; url="$2" out=$(curl -sS -m 20 -L -A "$UA" -w "\n@@CODE:%{http_code} BYTES:%{size_download} URL:%{url_effective}" "$url" 2>&1) code=$(printf '%s' "$out" | sed -n 's/.*@@CODE:\([0-9]*\).*/\1/p' | tail -1) bytes=$(printf '%s' "$out" | sed -n 's/.*BYTES:\([0-9]*\).*/\1/p' | tail -1) eff=$(printf '%s' "$out" | sed -n 's/.*URL:\(.*\)$/\1/p' | tail -1) body=$(printf '%s' "$out" | sed 's/@@CODE:.*//') head=$(printf '%s' "$body" | tr '\n\t' ' ' | cut -c1-90) markers="" for m in "captcha" "cf-challenge" "challenge-platform" "Just a moment" "are you a robot" "human verification" "Access Denied" "Request Rejected" "I'm not a robot"; do if printf '%s' "$body" | grep -qi -- "$m"; then markers="$markers [$m]"; fi done printf '%-3s status=%-3s bytes=%-7s%s\n' "$name" "$code" "${bytes:-0}" "$markers" printf ' effective: %s\n' "$eff" printf ' body: %s\n' "$head" } echo "12 US state business registries, one plain GET each, $(date -u +%Y-%m-%dT%H:%MZ)" echo "client: $UA, no cookies, no JS, redirects followed" echo probe WY "https://wyobiz.wyo.gov/Business/FilingSearch.aspx" probe DE "https://icis.corp.delaware.gov/ecorp/entitysearch/NameSearch.aspx" probe CO "https://www.coloradosos.gov/biz/BusinessEntityCriteriaExt.do" probe FL "https://search.sunbiz.org/Inquiry/CorporationSearch/ByName" probe OH "https://businesssearch.ohiosos.gov/" probe TX "https://mycpa.cpa.state.tx.us/coa/search" probe WA "https://ccfs-api.prod.sos.wa.gov/api/BusinessSearch/GetBusinessSearchList?Type=Entity&SearchName=Microsoft&SearchType=Contains" probe CA "https://bizfileonline.sos.ca.gov/search/business" probe NY "https://apps.dos.ny.gov/publicInquiry/" probe IL "https://apps.ilsos.gov/corporatellc/" probe NC "https://www.sosnc.gov/online_services/search/by_title/_Business_Registration" probe GA "https://ecorp.sos.ga.gov/BusinessSearch" echo echo "How to read a row: 200 + a real page of results is an answer. 200 + a shell," echo "a challenge page, or zero records is not. 4xx/5xx, a TLS close, or a redirect" echo "into a human UI is a refusal. A refusal is not a 'no record'."