Netcat-like tool for tor network
- Autodetect SOCKS port by control socket in client mode
- Creates ephemeral hidden service in listen mode
- Tor daemon with control socket enabled (tcp/unix)
# Create ephemeral hidden service and wait for incoming connections
$ torcat -v -l 9999
(stderr) iwwcfmu5ncqwnncw.onion
(stderr) [Waiting]
# Connect to hidden service, send "Hello world!" and close connection
$ torcat -v iwwcfmu5ncqwnncw.onion 9999
(stderr) [Connected]
(stdin) Hello world!
^C
- Set cookie in environment variable TORCAT_COOKIE if tor daemon requires authentication