Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

connecttor

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connecttor

Connect to Tor. Discovery and connective tissue for interacting with a local tor binary.

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Connect-tor

Connect to a local tor binary on the system. Do path discovery and provide a common interface to remove platform-specific clumsiness when dealing with the external process.

Usage

var connecttor = require('connecttor');
connecttor.connect(function (socket) {
  // returns a net.socket connected to Tor's control port.
});

Design

Connecttor uses a platform-dependent mechanism to connect with tor. Sorry.

On known linux distributions (currently debian variants), connecttor expects to use the system-bundled tor distribution. These implementations compartmentalize security, by running the tor process as a different user, so that even if the node process is compromised, it will not be able to read the private keys to subsequently impersonate onion addresses. Several Caveats apply. The first is that apt-get install tor does not set up an installation which can be controlled by other users. In addition, the user running node will need to be in the debian-tor unix group in order to connect to the tor control socket.

On Mac and Windows distributions where tor does not attempt to user-isolate its keys, connecttor will attempt to find an installation of tor browser bundle or tor binary in standard locations, and will download a local copy if one is not found. It will then run its own instance of tor with a custom torrc configuration.

Debian installation

  1. Make sure tor is installed:
apt-get install tor
  1. Add the user running node to the debian-tor group:
usermod -a -G debian-tor `whoami`

Keywords

FAQs

Package last updated on 17 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc