Skip to content

EasyTorHiddenServicePython is a project to run a simple Python webserver to serve files on the darknet. The project was written and tested in Python 3.

License

Notifications You must be signed in to change notification settings

SeppPenner/EasyTorHiddenServicePython

Repository files navigation

EasyTorHiddenServicePython

EasyTorHiddenServicePython is a project to run a simple Python webserver to serve files on the darknet. The project was written and tested in Python 3.

Build status GitHub issues GitHub forks GitHub stars License: MIT Known Vulnerabilities

Setup:

  1. Clone this project to a directory, e.g. /home/{username}/hidden-service/.
  2. Install Python and Tor using e.g.
sudo apt-get install tor python3-pip python-pip
  1. Install all required pip package dependencies with:
pip install -r requirements.txt
  1. Add
HiddenServiceDir /home/{username}/hidden-service/
HiddenServicePort 80 127.0.0.1:8000

to the /etc/tor/torrc file (Change the directory of course) using

nano /etc/tor/torrc
  1. Set the execute flags:
chmod +x install.sh
chmod +x run.sh
chmod +x restartTor.sh
chmod +x startTor.sh
chmod +x stopTor.sh
chmod +x statusTor.sh
  1. Set the rights to the directory properly:
chmod 700 /home/{username}/hidden-service/
  1. Add files to the web subfolder of your service to serve them.
  2. Restart tor using
sudo service tor restart
  1. Get your tor hostname from your service directory:
cat /home/{username}/hidden-service/hostname
  1. Check that your firewall(s) do not block incoming traffic.
  2. Access your hidden service over the hostname with the Tor Browser

Further Links:

Change history

See the Changelog.

About

EasyTorHiddenServicePython is a project to run a simple Python webserver to serve files on the darknet. The project was written and tested in Python 3.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •