An open API service indexing awesome lists of open source software.

https://github.com/satwikkansal/tor-hidden-service-python

A very basic project creating a `.onion` website for Tor using Flask framework and python.
https://github.com/satwikkansal/tor-hidden-service-python

flask hidden-service onion python tor tor-browser

Last synced: 18 days ago
JSON representation

A very basic project creating a `.onion` website for Tor using Flask framework and python.

Awesome Lists containing this project

README

        

# tor-hidden-service-python

> A simple boilerplate of creating a `.onion` website for Tor using Flask and Python.

## Table of Contents

- [Instructions](#instructions)
- [Screenshots](#screenshots)
- [Contributing](#contributing)
- [License](#license)

## Instructions

- Download Tor browser from the official site ([link](https://www.torproject.org/download/download))

- Configure your hidden service.
+ Go to the Tor browser directory.
+ Open the "torrc" file in an editor. (Probably located in `Browser/TorBrowser/Data/Tor` directory)
+ Add the following lines to the file
```
HiddenServiceDir /any/path/where/you/want/config/to/be/stored
HiddenServicePort 80 127.0.0.1:5000
```
+ Save and close the file.

- Clone this repository in your local system
```sh
$ git clone https://github.com/satwikkansal/tor-hidden-service-python.git
$ cd tor-hidden-service
```

- Install the pypi requirements
```sh
$ pip -r requirements.txt
```

- Run the server
```sh
$ python run.py
```

- Launch the Tor Browser

- Copy the url generated in the `hostname` file
```sh
$ cat /path/to/config/directory/hostname
>>> some-obfuscated-url.onion
```

- Open this copied url in the Tor Browser and it should work :tada:

## Screenshots

![Screenshot](https://github.com/satwikkansal/tor-hidden-service-python/blob/master/screenshots/front.png)

## Contributing

All patches welcome!

## License

MIT License - see the [LICENSE](https://github.com/satwikkansal/tor-hidden-service-python/blob/master/LICENSE) file for details.