Skip to content

Instantly share code, notes, and snippets.

@tcr
Created April 8, 2013 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcr/5339126 to your computer and use it in GitHub Desktop.
Save tcr/5339126 to your computer and use it in GitHub Desktop.
Rem over Tor
var rem = require('rem');
var SocksAgent = require('socksified').SocksAgent;
var tor = rem.createClient({
base: 'http://....onion'
agent: new SocksAgent({
socks_host: '127.0.0.1',
socks_port: 9050
}),
key: 'null'
});
// Run tor HTTP requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment