Skip to content
ben-jones edited this page Mar 19, 2014 · 2 revisions

Prerequisites

  • Flask-> run sudo apt-get install python-flask

Running the code

  1. Start the server side of the bridge with python htpt.py -server
  2. Start the server "Tor" process by opening a socket on port 8001. Within the python interpreter, run import socket, sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, and sock.connect(('127.0.0.1', 8001))
  3. Start the client side of the bridge with python htpt.py -client
  4. Start the client "Tor" process by opening a socket on port 8001. Within the python interpreter, run import socket, sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, and sock.connect(('127.0.0.1', 8001))

Clone this wiki locally