Skip to content

πŸ§…πŸ§„ Serve any folder as a .onion hidden service via Tor with a single command. Lightweight, cross-platform, and fully offline.

Notifications You must be signed in to change notification settings

maccali/TorFolder.CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

torfolder

Easily create a .onion server via Tor from any local folder. This CLI tool turns the directory where it runs into a globally accessible website over the Tor network.


πŸ“¦ Requirements

πŸ’‘ How to make sure tor is in your PATH

Windows

  1. Download and install the Tor Expert Bundle
  2. Extract the files (e.g. to C:\Tor)
  3. Add the folder containing tor.exe to your system PATH:
    • Control Panel β†’ System β†’ Advanced Settings β†’ Environment Variables
    • Edit the Path variable and add: C:\Tor
  4. Restart your terminal
  5. Test it:
    tor --version

Linux/macOS

Install via your package manager:

sudo apt install tor       # Debian/Ubuntu
brew install tor           # macOS (Homebrew)

Then test:

tor --version

πŸš€ How to use

  1. Place the compiled torfolder binary in a directory that is in your system's PATH
  2. Navigate to the folder you want to expose in your terminal
  3. Run the command:
torfolder

The terminal will display something like:

πŸš€ Your site is available on the Tor network:
    http://abc123xyz.onion
  1. Open the URL in the Tor Browser or a Brave browser session using Tor
  2. A new .onion link is generated each time, unless you preserve the data folder

⚠️ Security

  • The tor-data/ folder and any data-dir-* folders are automatically protected and not served over HTTP
  • The embedded Tor process runs silently by default
  • The .onion private key is stored temporarily (unless you manually preserve the generated folder)

Made with πŸ’» using Go + Tor + Bine

About

πŸ§…πŸ§„ Serve any folder as a .onion hidden service via Tor with a single command. Lightweight, cross-platform, and fully offline.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published