All squares that match a wildcard sequence

I use proxychains-ng which can be configured to use a SOCKS proxy. It is available via Homebrew: brew install proxychains-ng.

Note there is a known limitation on 10.11+ that SIP prevents hooking of system binaries - see GitHub issue #78 - but it can be used with anything installed via Homebrew, as the binaries are in directories not affected by SIP. For example, to use (Homebrew installed & linked) curl through a Tor SOCKS proxy, your .proxychains/proxychains.conf would look like this:

[ProxyList]
socks5  127.0.0.1   9050

Check curl is Homebrew, not system version:

$ which curl
/usr/local/bin/curl

proxychains4 curl http://ipinfo.io then does this:

[proxychains] config file found: /Users/me/.proxychains/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib
[proxychains] DLL init: proxychains-ng 4.11
[proxychains] Dynamic chain  ...  127.0.0.1:9050  ...  52.58.99.202:80  ...  OK
{
  "ip": "194.71.109.74",
  "hostname": "tor.keff.org",
  "city": "Stockholm",
  "region": "Stockholm",
  "country": "SE",
  "loc": "59.3333,18.0500",
  "org": "AS41281 Scaling Networks AB",
  "postal": "173 11"
}

The README caveats explain why it does not work for everything, but it may be worth a try.