🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

connecttor

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
60

Supply Chain Security

100

Vulnerability

81

Quality

76

Maintenance

100

License

Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created

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

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

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