All Projects → dryruby → Tor.rb

dryruby / Tor.rb

Licence: unlicense
Tor.rb is a Ruby library for interacting with the Tor anonymity network.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Tor.rb

Pluck all
A more efficient way to get data from database. Like #pluck method but return array of hashes instead.
Stars: ✭ 83 (-23.15%)
Mutual labels:  rubygems
Stem
Python controller library for Tor
Stars: ✭ 88 (-18.52%)
Mutual labels:  tor
Ssh keyscanner
ssh public host key scanner using shodan
Stars: ✭ 102 (-5.56%)
Mutual labels:  tor
Tor Browser Portable
Portable version of the Tor Browser, for Windows
Stars: ✭ 84 (-22.22%)
Mutual labels:  tor
Projectx
DarkWeb Overview
Stars: ✭ 86 (-20.37%)
Mutual labels:  tor
Tor Android
Tor binary and library for Android
Stars: ✭ 90 (-16.67%)
Mutual labels:  tor
Cloudfail
Utilize misconfigured DNS and old database records to find hidden IP's behind the CloudFlare network
Stars: ✭ 1,239 (+1047.22%)
Mutual labels:  tor
Fullynoded
Self sovereign, secure, powerful, easy to use wallet that utilizes your own node as a backend. Powered by PSBT's and descriptors. Acts as an offline signer using your node as a watch-only wallet. C-Lightning compatible for instant, unfairly cheap payments.
Stars: ✭ 107 (-0.93%)
Mutual labels:  tor
Dependency spy
Find known vulnerabilities in your dependencies
Stars: ✭ 87 (-19.44%)
Mutual labels:  rubygems
Archtorify
Transparent proxy through Tor for Arch Linux OS
Stars: ✭ 100 (-7.41%)
Mutual labels:  tor
Bestgems.org
Gem ranking and downloads trends providing service.
Stars: ✭ 84 (-22.22%)
Mutual labels:  rubygems
Rails or
Cleaner syntax for writing OR Query in Rails 5, 6. And also add #or support to Rails 3 and 4.
Stars: ✭ 86 (-20.37%)
Mutual labels:  rubygems
Dot
Darknet OSINT Transform
Stars: ✭ 93 (-13.89%)
Mutual labels:  tor
Onionr
Private Decentralized Communication Network 🎭 🧅
Stars: ✭ 84 (-22.22%)
Mutual labels:  tor
Gems
Ruby wrapper for the RubyGems.org API
Stars: ✭ 103 (-4.63%)
Mutual labels:  rubygems
Php Torcontrol
PHP TorControl, a library to control TOR
Stars: ✭ 82 (-24.07%)
Mutual labels:  tor
Transports
A HTTP proxy that aims to support different transports.
Stars: ✭ 88 (-18.52%)
Mutual labels:  tor
Factory bot instruments
Instruments for benchmarking, tracing, and debugging Factory Girl models.
Stars: ✭ 108 (+0%)
Mutual labels:  rubygems
Torpy
Pure python Tor client implementation
Stars: ✭ 104 (-3.7%)
Mutual labels:  tor
Le Chat Php
A PHP Chat based on LE CHAT
Stars: ✭ 95 (-12.04%)
Mutual labels:  tor

Tor.rb: Onion Routing for Ruby

This is a Ruby library for interacting with the Tor anonymity network.

Features

  • Supports checking whether Tor is installed in the user's current PATH, and if it is, returning the version number.
  • Supports parsing Tor configuration files and looking up the values of particular options.
  • Supports querying and controlling a locally-running Tor process using the Tor Control Protocol (TC) over a socket connection.
  • Supports querying the Tor DNS Exit List (DNSEL) to determine whether a particular host is a Tor exit node or not.
  • Compatible with Ruby 1.8.7+, Ruby 1.9.x, and JRuby 1.4/1.5.

Examples

require 'rubygems'
require 'tor'

Checking whether Tor is installed and which version it is

Tor.available?                                     #=> true
Tor.version                                        #=> "0.2.1.25"

Parsing the Tor configuration file (1)

torrc = Tor::Config.load("/etc/tor/torrc")

Parsing the Tor configuration file (2)

Tor::Config.open("/etc/tor/torrc") do |torrc|
  puts "Tor SOCKS port: #{torrc['SOCKSPort']}"
  puts "Tor control port: #{torrc['ControlPort']}"
  puts "Tor exit policy:"
  torrc.each('ExitPolicy') do |key, value|
    puts "  #{value}"
  end
end

Communicating with a running Tor process

Tor::Controller.connect(:port => 9051) do |tor|
  puts "Tor version: #{tor.version}"
  puts "Tor config file: #{tor.config_file}"
end

Checking whether a particular host is a Tor exit node

Tor::DNSEL.include?("185.220.101.21")               #=> true
Tor::DNSEL.include?("1.2.3.4")                     #=> false

Documentation

Dependencies

Installation

The recommended installation method is via RubyGems. To install the latest official release of Tor.rb, do:

% [sudo] gem install tor                 # Ruby 1.8.7+ or 1.9.x
% [sudo] gem install backports tor       # Ruby 1.8.1+

Download

To get a local working copy of the development repository, do:

% git clone git://github.com/bendiken/tor-ruby.git

Alternatively, you can download the latest development version as a tarball as follows:

% wget http://github.com/bendiken/tor-ruby/tarball/master

Author

License

Tor.rb is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].