TOR-from-scratch

TOR Logo

Table of Contents

Introduction

TOR-from-scratch is a comprehensive project that demonstrates the underlying principles of the Tor network. This project is designed for educational purposes, showcasing how to build the Tor network from the ground up, understanding the complexities of anonymous communication, and enhancing privacy on the internet.

Installation

To set up the project on your local machine, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/trevorsaudi/TOR-from-scratch.git
    cd TOR-from-scratch
  2. Install Dependencies:

    Ensure you have the required dependencies installed. For a typical Kali Linux environment, you may need:

    sudo apt-get update
    sudo apt-get install tor
  3. Configuration:

    Configure the Tor service to listen on port 9050 by editing the torrc file:

    sudo nano /etc/tor/torrc

    Ensure the following line is present (listens on 9050 by default):

    SocksPort 9050
  4. Start the Tor Service:

    sudo systemctl start tor

Usage

To use the Tor network as configured in this project, run the main application with the host and port as command-line arguments. This will effectively route your traffic through the TOR network to the target

Basic Usage

./main <host> <port>