# ๐ง
Tor Consensus Interactive Inspector
This project is a Bash script that provides an **interactive interface** to explore the Tor network consensus. It downloads a specified consensus file from [Tor Project's CollecTor](https://collector.torproject.org) and lets you inspect relay information such as:
- Relay type summaries (Guard, Exit, Authority)
- Exit relays
- Relays by country code
## ๐ Consensus Source
This script uses a **fixed snapshot** of the consensus document from:
https://collector.torproject.org/recent/relay-descriptors/consensuses/2025-05-03-16-00-00-consensus
This file contains detailed relay status entries as agreed upon by Tor directory authorities.
## ๐งฐ Requirements
- `bash`
- `curl`
- `awk`
- `grep`
All of these are available by default on most Linux/macOS systems.
## โถ๏ธ Usage
1. Clone the repository:
```bash
git clone https://github.com/yourusername/tor-consensus-interactive.git
cd tor-consensus-interactive
-
Make the script executable:
chmod +x interactive_fixed_consensus.sh
-
Run the script:
./interactive_fixed_consensus.sh
-
Choose an option from the menu:
--- Tor Consensus Interactive Menu --- 1) Summary of Relay Types 2) Search Relays by Country 3) List Exit Relays 4) Quit
- ๐งฎ Relay statistics: View total number of relays, exit nodes, guards, and authorities.
- ๐ Country search: Find relays registered under a specific country code.
- ๐ช Exit relay list: View the first 20 exit-capable relays.
interactive_fixed_consensus.sh # Main script
README.md # This file
- Add bandwidth display (
wlines) - Integrate with
geoiplookupfor richer IP metadata - Allow selection of recent consensus files dynamically
- Export filtered data to CSV or JSON
This tool is for educational and research purposes only. It does not interact with or modify the Tor network. All data is retrieved from public and official Tor Project archives.