[tor-talk] simple example in ruby

coderman coderman at gmail.com
Sat Aug 11 03:36:12 UTC 2012


On Mon, Aug 6, 2012 at 1:44 PM,  <grubymis at tormail.org> wrote:
> Please send me a simple example in Ruby.
> How I can read from onion adress.
>
> connect to ypr7i2smxhcjalla.onion
> socker.write("string")
> and get ansver.

behind transparent Tor proxy (see FAQ :)

s = TCPSocket.new 'ypr7i2smxhcjalla.onion', 80
s.puts "string"
while line = s.gets
  puts line         # this is your answer(s)
end
s.close

if you want to speak to Tor SOCKS port directly, and use name
resolution correctly, that's a longer answer... and this is not the
right forum to ask.


More information about the tor-talk mailing list