Welcome Guest, Not a member yet? Create Account  

How to easily deploy a TOR hidden service
#1
(This post was last modified: 10-26-2017, 05:42 PM by Anna. Edit Reason: Updated )

1) Install nginx or any service you need to hide:
Code:
sudo pacman -S nginx
sudo systemctl enable nginx
sudo systemctl start nginx

2) Install tor:
Code:
sudo pacman -S tor torsocks
 
3) Modify /etc/tor/torrc:

Code:
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80

4) Start tor service automatically:
Code:
sudo systemctl enable tor
sudo systemctl start tor


5) Don't forget to backup /var/lib/tor/hidden_service/ it has your domain key

You can view your onion domain here: /var/lib/tor/hidden_service/hostname

So, you have the service up and running now, you can take some extra steps like adding server blocks to your configuration, this will allow you to serve different sites on different domains.
To add server blocks you'll need to add a site configuration file to the /etc/nginx/sites-available directory (yours might differ)
An example of the file:
Code:
server {
   listen 80;
   server_name 54ogum7gwxhtgiya.onion;
   root /var/www/html/insertor_dir;
   index index.php index.html index.htm;
   location / {
       try_files $uri $uri/ =404;
   }
   location ~ \.php$ {
           include snippets/fastcgi-php.conf;
           fastcgi_pass unix:/var/run/php5-fpm.sock;
   }
}
You'll need to edit the server_name and root variables to suit your needs.
You can add multiple server blocks for every site you run.

Have fun! Blackhat
Likes 0
#2

You can only view the site normally with just the server IP.
Likes 0
Reply
#3

cool !! you need to hide your tut
Likes 0
Reply
#4

Nice tutorial , you can hide your tutorial while using [hide] link [ /hide] (Without the space before the / )
Likes 0
Reply
#5

(10-25-2017, 11:50 PM)shannox Wrote: cool !! you need to hide your tut

(10-26-2017, 12:07 AM)zNeasty Wrote: Nice tutorial , you can hide your tutorial while using [hide] link [ /hide] (Without the space before the / )

He likes to make free tutorials I believe.
Likes 0
Reply
#6

(10-25-2017, 08:36 PM)Vespei Wrote: You can only view the site normally with just the server IP.

What do you mean?
If you host it as a tor service you can access it from anywhere using the TOR browser and the onion domain

(10-25-2017, 11:50 PM)shannox Wrote: cool !! you need to hide your tut

Why would I? More people will see this if I don't hide it.

(10-26-2017, 12:07 AM)zNeasty Wrote: Nice tutorial

Thanks

(10-26-2017, 01:14 PM)Vespei Wrote: He likes to make free tutorials I believe.

True.
Likes 0
Reply
#7

(10-26-2017, 01:14 PM)Vespei Wrote:
(10-25-2017, 11:50 PM)shannox Wrote: cool !! you need to hide your tut

(10-26-2017, 12:07 AM)zNeasty Wrote: Nice tutorial , you can hide your tutorial while using [hide] link [ /hide] (Without the space before the / )

He likes to make free tutorials I believe.
 I believe too
Likes 0
Reply
#8
(This post was last modified: 10-26-2017, 04:08 PM by Vespei.)

(10-26-2017, 02:57 PM)zNeasty Wrote:
(10-26-2017, 01:14 PM)Vespei Wrote:
(10-25-2017, 11:50 PM)shannox Wrote: cool !! you need to hide your tut

(10-26-2017, 12:07 AM)zNeasty Wrote: Nice tutorial , you can hide your tutorial while using [hide] link [ /hide] (Without the space before the / )

He likes to make free tutorials I believe.
 I believe too

I think he'd know about hide tags now.

(10-26-2017, 02:57 PM)zNeasty Wrote:
(10-26-2017, 01:14 PM)Vespei Wrote:
(10-25-2017, 11:50 PM)shannox Wrote: cool !! you need to hide your tut

(10-26-2017, 12:07 AM)zNeasty Wrote: Nice tutorial , you can hide your tutorial while using [hide] link [ /hide] (Without the space before the / )

He likes to make free tutorials I believe.
 I believe too
It's on port 80, with the server's real IP you can just type the IP and access the site.
Likes 0
Reply
#9

(10-26-2017, 04:06 PM)Vespei Wrote: It's on port 80, with the server's real IP you can just type the IP and access the site.

Yes you can if the firewall is not blocking the port 80
The other thing you can do is add an extra server block in the configs to serve a different page on the onion domain
Likes 0
Reply
#10
(This post was last modified: 10-26-2017, 05:32 PM by Vespei.)

(10-26-2017, 05:19 PM)Anna Wrote:
(10-26-2017, 04:06 PM)Vespei Wrote: It's on port 80, with the server's real IP you can just type the IP and access the site.

Yes you can if the firewall is not blocking the port 80
The other thing you can do is add an extra server block in the configs to serve a different page on the onion domain

Yah, Run a VirualHost with the onion link as ServerName would work. You could add that as a tip in the tutorial.
Whoops I was talking like I was using Apache2
Likes 0
Reply




  1 Guest(s)