[tor-talk] simple example in ruby
grubymis at tormail.org
grubymis at tormail.org
Fri Aug 24 11:26:14 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
this not working.
:in `initialize': getaddrinfo: Name or service not known (SocketError)
from ./client.rb:18:in `open'
> 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.
Yes I need SOCKS directly.
More information about the tor-talk
mailing list