All Projects → MagicalBitcoin → libtor

MagicalBitcoin / libtor

Licence: MIT License
Bundle and run Tor inside your own project

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to libtor

ccxx
This is a cross-platform library software library about c, c ++, unix4, posix. Include gtest, benchmark, cmake, process lock, daemon, libuv, lua, cpython, re2, json, yaml, mysql, redis, opencv, qt, lz4, oci ... https://hub.docker.com/u/oudream
Stars: ✭ 31 (-48.33%)
Mutual labels:  daemon
sbws
Unofficial clone of gitweb.torproject.org. Report issues and open merge requests at: https://gitlab.torproject.org/tpo/network-health/sbws/
Stars: ✭ 15 (-75%)
Mutual labels:  tor
pulseha
PulseHA is a active-passive high availability cluster daemon that uses GRPC and is written in GO.
Stars: ✭ 15 (-75%)
Mutual labels:  daemon
vDroid
official re-designed Android wallet 📳
Stars: ✭ 14 (-76.67%)
Mutual labels:  tor
macos
macOS load bootup and optimization
Stars: ✭ 29 (-51.67%)
Mutual labels:  daemon
tarssh
A simple SSH tarpit inspired by endlessh
Stars: ✭ 98 (+63.33%)
Mutual labels:  daemon
git-slack-notify
Sends Slack notifications for new commits in Git repositories
Stars: ✭ 12 (-80%)
Mutual labels:  daemon
shh
Create Tor hidden services in Python.
Stars: ✭ 42 (-30%)
Mutual labels:  tor
DunglasTorControlBundle
Integration of PHP TorControl library in Symfony
Stars: ✭ 13 (-78.33%)
Mutual labels:  tor
meanOs
Mean Operating System - The first decentralized, artificially intelligent, MEAN.js stack, operating system. Mean OS is the only operating system hosted anonymous using a P2P network and a suite of non-standard in-browser delivery mechanisms. Mean OS proudly supports Brave and Tor, be free!
Stars: ✭ 62 (+3.33%)
Mutual labels:  tor
peeling-onions
A repository to store Deep Web (onion domain) crawler, scraper, and NLP tools for Tor network.
Stars: ✭ 18 (-70%)
Mutual labels:  tor
scrapy-do
A daemon for scheduling Scrapy spiders
Stars: ✭ 60 (+0%)
Mutual labels:  daemon
pf-diverters
A collection of (OpenBSD) PF divert socket daemons
Stars: ✭ 42 (-30%)
Mutual labels:  daemon
dxhd
daky's X11 Hotkey Daemon
Stars: ✭ 80 (+33.33%)
Mutual labels:  daemon
powerplan
No description or website provided.
Stars: ✭ 27 (-55%)
Mutual labels:  daemon
break-time
break timer that forces you to take a break
Stars: ✭ 13 (-78.33%)
Mutual labels:  daemon
gateway
A proxy to buffer and forward metrics, events, and traces.
Stars: ✭ 94 (+56.67%)
Mutual labels:  daemon
tor-dht-poc
Anonymous DHT Accessible from Executable or Tor-Enabled Browser
Stars: ✭ 40 (-33.33%)
Mutual labels:  tor
go-libp2p-tor-transport
🚧 WIP: tor transport for libp2p
Stars: ✭ 41 (-31.67%)
Mutual labels:  tor
rest-ftp-daemon
A pretty simple but configurable and efficient FTP-client daemon, driven through a RESTful API, used by France Télévisions in production
Stars: ✭ 23 (-61.67%)
Mutual labels:  daemon

libtor

libtor is a Rust crate for bundling inside your project a fully-running Tor daemon. It exposes a nicer interface to operate it compared to the bare-bones version, libtor-sys. If you need further instructions on how to build or cross-compile the project, you should refer to the libtor-sys README.md.

libtor makes it easier for projects on multiple platforms to use Tor without depending on the user to configure complex proxy settings from other external software.

Example

use libtor::{Tor, TorFlag, TorAddress, HiddenServiceVersion};

Tor::new()
    .flag(TorFlag::DataDirectory("/tmp/tor-rust".into()))
    .flag(TorFlag::SocksPort(19050))
    .flag(TorFlag::HiddenServiceDir("/tmp/tor-rust/hs-dir".into()))
    .flag(TorFlag::HiddenServiceVersion(HiddenServiceVersion::V3))
    .flag(TorFlag::HiddenServicePort(TorAddress::Port(8000), None.into()))
    .start()?;

Since Tor uses internally some static variables to keep its state, keep in mind that you can't start more than one Tor instance per process.

Supported platforms

The currently supported platforms are:

  • Linux (tested on Fedora 30 and Ubuntu Xenial)
  • Android through the NDK
  • MacOS
  • iOS
  • Windows cross-compiled from Linux with mingw

Coming Soon ™️:

  • Windows (natively built)

Dependencies

The following dependencies are needed:

  • openssl
  • pkg-config
  • file
  • the "usual" C build tools: a compiler, automake, autoconf
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].