Falitomal / ft_onion

Crear servicios ocultos (onion) a través de Tor, mediante contenedores (Docker)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📖 ft_onion | 42 Cibersec

Containers, Tor and Love

GitHub code size in bytes Code language count GitHub top language GitHub last commit

✏️ Files

The following files must be submitted:

index.html
nginx.conf
sshd_config
torrc

💡 About the project


Create a web page and make it accessible through the Tor network by creating a hidden service.

Requirements
 The service must have a static web page: a single index.html file.
 The page will be accessible through a URL of type xxxxxxxx.onion.
 The content of the page will be "up to you".
 Nginx will be used to configure the web server.
 No other server or framework is allowed.
 The web page will be accessible via HTTP on port 80.
 Access to the server will be enabled by SSH on port 4242.
 No other ports must be opened and no firewall rules must be set.

🛠️ Usage


It will be necessary to use Nginx and Tor in order to create the hidden service.

We create a dockerfile with the necessary services, to deploy a web in local and tor.
On that machine: 
Add a rule for port 80:80 (HTTP).
Add a rule for port 4242:4242 (SSH).
Once the necessary packages have been installed, simply replace the delivered files with the original ones so that the indicated configuration is applied and finally, restart the Nginx and Tor services.

🛠️ Useful commands


    docker build -t ft_onion .
    docker run -d -p 80:80 -p 4242:4242 ft_onion ft_onion
    
    This command to get the list of containers:
    docker ps -a
    This command to export the onion:
    docker exec -it "id_container" cat /var/lib/tor/hidden_service/hostname.

About

Crear servicios ocultos (onion) a través de Tor, mediante contenedores (Docker)

License:Apache License 2.0


Languages

Language:HTML 90.8%Language:Dockerfile 9.2%