Sploitech

How To Create A Website On The Dark Web Using Raspberry Pi

Dark Web

Tools & Software Required:

  • One operating system to configure Raspberry Pi & to check your tor website. (Recommended Windows 10)
  • One Raspberry Pi I am using raspberry pi 3.
  • Tor Software. (sudo apt install tor)
  • Nginx Software. (sudo apt install nginx)

Configuring Raspberry Pi:

First, we need to set up the operating system on the sd card. We will be using Raspberry Pi OS with desktop because it does not comes with recommended software and it is very lightweight.

Step 1: Install the Raspberry Pi Imager to flash the image on the sd card. Official Download link 

Step 2: Downloading the latest image file of the Raspberry Pi OS with desktop. Official Download link

Step 3: Open the Raspberry Pi Imager and select the Choose Os and scroll down to the last option and select the Use Custom option and locate where you have download the os file

Step 4: Select the sd on which you want to write your os files and then click on the write button.

You at least need an 8 GB sd card to install the os. It will take a long time to complete.

Recommended RPI:

Installing Tor & Nginx:

First, we need to update our pi software to get the latest security patch.

To get updates Type:

  • sudo apt-get update
  • sudo apt-get upgrade
				
					sudo apt-get update
sudo apt-get upgrade
				
			

After the update is completed we will install Tor & Nginx on the pi.

Type: sudo apt install tor nginx -y

				
					sudo apt install tor nginx -y
				
			

Configuring Tor & Nginx:

After we have installed Tor & Nginx we have to do some changes to make our webserver more secure.

Type: sudo nano

				
					sudo nano 
				
			

Now locate to the line where it is written:

  • #HiddenServiceDir /var/lib/tor/hidden_service/
  • #HiddenServicePort 80 127.0.0.1:80
				
					#HiddenServiceDir /var/lib/tor/hidden_service/
#HiddenServicePort 80 127.0.0.1:80
				
			

Now uncomment both of the lines by removing the hash symbol. It should look like this after removing the hash symbol:

				
					HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
				
			
  • The first line will store your private key, public key & your .onion address.
  • The second line is the port which you are going to expose to the tor. 

After you have uncommented these two lines press:

  • ctrl + x and enter y for yes and again press enter to exit.

After you have saved the file we have to restart the tor service.

To Restart Tor Type:

  • sudo service tor stop
  •  sudo service tor start
  • sudo service tor status
				
					sudo service tor stop
sudo service tor start
sudo service tor status
				
			

If your tor service is active(running) that means your website is on the tor!!!

Getting Our Tor Domain Name:

Now to get your tor address

Type: cat /var/lib/tor/hidden_service/hostname

				
					cat /var/lib/tor/hidden_service/hostname
				
			

After you have got your domain name we have to start the Nginx service.

To Start Nginx Type:

  • sudo service nginx start
  • sudo service nginx status
				
					sudo service nginx start
sudo service nginx status
				
			

Now we have to change some settings in the Nginx configuration.

Type:

  • sudo nano 

Now locate to the line where it is written:

  • # server_tokens off;
  • # server_name_redirect off;

uncomment both of the lines and add this line under server_token:

  • port_in_redirect off;
				
					server_tokens off;
port_in_redirect off;

server_name_redirect off;
				
			

After you have changed these setting press:

  • ctrl + x and enter y for yes and again press enter to exit.

Now restart the Nginx service:

				
					sudo service nginx restart
				
			

If you want to customize the default Nginx page.

Type: 

  • cd /var/www/html/

After the directory is changed paste your own Html code.

				
					cd /var/www/html/
				
			

Conclusion

Raspberry Pi is good for running your own local website but when it comes to running a business website it cannot handle much traffic and to create a fully secured website you have to go deep into security & networking. it is best to host your website on a powerful server.

Liked This Article? Join Our Newsletter.

It’s Free! Get exclusive access to new tips, articles, guides, updates, and more.

Share It On:

Share on facebook
Facebook
Share on whatsapp
WhatsApp
Share on reddit
Reddit
Share on telegram
Telegram
Share on email
Email

COMMENTS:

Leave a Reply

Your email address will not be published. Required fields are marked *

You Might Also Like:

Want To Know About Latest Hacking Tricks?

It’s Free! Get exclusive access to new tips, articles, guides, updates, and more.