I tried connecting to tor in TBB 3.5.1, OS X 10.8.5 using telnet localhost 9151 but since CookieAuthentication is set it requires authentication.
From the manual
CookieAuthentication 0|1 If this option is set to 1, allow connections on the control port when the connecting process knows the contents of a file named "control_auth_cookie", which Tor will create in its data directory. This authentication method should only be used on systems with good filesystem security. (Default: 0)
I checked RFCs and other sources for TELNET/telnet but I couldn't find any information on this matter.
How can I authenticate using the cookie?