uninitialized constant Net (NameError)
Whoops, paste error. I've fixed it above. The top of the script should look like this:
#!/usr/bin/ruby -w
require 'net/http'
require 'json'
another error:
C:\Users\Antonio\AppData\Roaming\ProtoShares>brute.rb
"psw "
C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:878:in `initialize': Impossibile stabi
lire la connessione. Rifiuto persistente del computer di destinazione. - connect
(2) (Errno::ECONNREFUSED)
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:878:in `open'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
from C:/Ruby200-x64/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:877:in `connect'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:851:in `start'
from C:/Ruby200-x64/lib/ruby/2.0.0/net/http.rb:1367:in `request'
from C:/Users/Antonio/AppData/Roaming/ProtoShares/brute.rb:13:in `test'
from C:/Users/Antonio/AppData/Roaming/ProtoShares/brute.rb:62:in `block
in '
from C:/Users/Antonio/AppData/Roaming/ProtoShares/brute.rb:62:in `each'
from C:/Users/Antonio/AppData/Roaming/ProtoShares/brute.rb:62:in `
'