[tor-talk] simple example in ruby
grubymis at tormail.org
grubymis at tormail.org
Fri Aug 24 19:06:50 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
not working Your idea.
please check before reply.
./client.rb::in `initialize': getaddrinfo: Name or service not known
(SocketError)
from ./client.rb::in `open'
from ./client.rb:
SOCKS is better but I don't know what use it
More information about the tor-talk
mailing list