Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TOR] Configure your first server on the darknet

[Image: WOcrIzt.png]

CONFIGURE YOUR FIRST SERVER ON THE DARKNET


This thread is part of a larger project that will detail how the Tor network works, as well as provide a guide for attacking sites with .onion URL links.

This tutorial doesn't explain how to configure a web server, follow the instructions only if you have already configured your web server.

Table of content
  1. [TOR] Configure your first server on the darknet (you are here)
  2. [TOR] Understand how Tor networks work (coming soon)
  3. [TOR] Performing hacking on Tor network (coming soon)
  4. [TOR] OnionShare - GUI toolkit for your first Darknet hosting experience

0. CONTEXT 🧅

You want to sell something on the darkweb, you've configured your webserver on a Linux server but you don't know how to put it online. Read this tutorial.

1. INSTALLATION 🛠️

Install the tor package :
Code
sudo apt install tor

2. CONFIGURATION ⚙️

Edit the following file : /etc/tor/torrc and uncomment the lines in white (uncommenting means removing the "#" signs)
(of course, if you configured, and I recommend you to, your webserver with TLS certificate change the default port to 443 or a custom)

[Image: mKIzI8T.png]

If you've configured a web server on your computer this will automatically point to the path relatd to the web server (which is usually /var/www)

3. THE .ONION LINK 🔗

After editing the torrc file, just restart the service
Code
sudo systemctl restart tor

The .onion link should be now in the following file :
/var/lib/tor/hidden_service/hostname

For your information, few years ago Tor updated .onion link to V3, here is how to differenciate them from V2 :

V2 link [16 characters]: expyuzz4wqqyqhjn.onion
V3 link [56 characters]: 83w0vhsrz4xeep6pgbnocj0xpqjpocv3i8o8ewpmm3nhttr0t0ka6tlf.onion

3bis. Custom .onion link

Here is a tip to get a "custom" .onion link. As you can see, .onion links are a string of random chars and numbers, however with the right tools you can generate (at least for the beginning of the link) a custom string, for example : hackforumsdn9czkj2xdj8cokt75lai6e12ntd9ljhlh1mxktkyy0ahs.onion

You can get custom .onion links with :
- Scallion > GPU-based, faster
- Shallot > CPU-based, requires more time

The longer and more specific your string is, the more time it takes to generate. A string of 3 to 5 characters can be found in a few minutes to a few hours, depending on the power of your GPU or CPU. For longer strings, it may take several days or weeks.

Scallion (GPU-based)

Code
sudo apt update
sudo apt install git build-essential mono-complete

git clone https://github.com/lachesis/scallion.git
cd scallion

xbuild Scallion.sln

./scallion/bin/Debug/scallion hackforums

The .onion link will start with hackforums[then random numbers and chars].onion

Shallot (CPU-based)
Code
git clone https://github.com/katmagic/Shallot.git
cd Shallot

make

./shallot omniscient

The .onion link will start with omniscient[then random numbers and chars].onion

4. ACCESS YOUR WEBSITE 🖥️

As we saw earlier the .onion link is in the following file :
Code
/var/lib/tor/hidden_service/hostname

Put the link in Tor Browser and you should be able to access it. This is the link you'll share to people.

Spoiler (Click to View)
High quality tutorial from an high quality user! Thanks you brother.
BTC: 17BtFfiwkuhjJTEqUmGzhiyRDNwV1aVPXm
(Oct 19, 2024 11:17 AM)PitbullT0r Wrote:  High quality tutorial from an high quality user! Thanks you brother.

Thanks man ! I think that this topic is really interesting and not that complex when you take the time to study it, at first I thought that configuring a web server on the darknet was something really advanced but it's really easy actually.

Feel free if you would like to see specific hacking tutorials on HF, I'll do my best to provide something HQ
(Oct 20, 2024 01:32 AM)Bastille Wrote:  Thanks man ! I think that this topic is really interesting and not that complex when you take the time to study it, at first I thought that configuring a web server on the darknet was something really advanced but it's really easy actually.

Feel free if you would like to see specific hacking tutorials on HF, I'll do my best to provide something HQ

Also a difficult thing become easy with a detailed tutorial as that.
Bump it.
BTC: 17BtFfiwkuhjJTEqUmGzhiyRDNwV1aVPXm
Excellent TuT! Thank you bro. I cannot wait for your Tor Hacking Tutorial.
Nice Thread! Do you maybe know when you will bring out the second and third part?
very good tut, thank you for this. I booked it
(Feb 23, 2025 03:28 PM)RoundLettuce Wrote:  Excellent TuT! Thank you bro. I cannot wait for your Tor Hacking Tutorial.

Thanks man ! I'm working on different projects right now for HF, will try to go back to tutorials soon

(Feb 23, 2025 08:48 PM)NardoRS Wrote:  Nice Thread! Do you maybe know when you will bring out the second and third part?

Thanks ! I hope to finish it within the coming weeks; I've already started the second tutorial and have few diagram like this one :
[Image: abxjd99.png]



(Feb 23, 2025 08:52 PM)Pr0m3th3us Wrote:  very good tut, thank you for this. I booked it

You're welcome buddy ! :) If you want more hacking tutorials feel free to ask here : https://hackforums.net/showthread.php?tid=6282713
anon, u are genius... will be coming back to this many times
(Mar 24, 2025 01:08 PM)mlkmx Wrote:  anon, u are genius... will be coming back to this many times

Thanks for the post, and you're welcome

There are a ton of tutorials like these on HF, and if you don't find what you need, just ask

Welcome to HF
This is actually impressive. Thanks for your contribution!
HF Member Since 2010
(Apr 30, 2025 06:51 AM)Hopsin Wrote:  This is actually impressive. Thanks for your contribution!

Thanks ! The TOR project is really interesting and I would like to develop more aspects of it, I've started working on other threads, hope to release them soon !
Excellent post, definitely taught a lot of people here I'd say.
[Image: brotherhood.gif]
Great thread. Now all I need is the silk road script lol

Thanks for the tutorial, great job
[Image: vibesignature.gif]
The Brotherhood Vibe  Legends
(Apr 30, 2025 03:14 PM)Dystortion Wrote:  Excellent post, definitely taught a lot of people here I'd say.

(May 1, 2025 11:34 PM)7 Wrote:  Great thread. Now all I need is the silk road script lol

Thanks for the tutorial, great job

Thanks guys ! I miss making these tutorials, I hope I'll have more free time to make more soon ✌️


Possibly Related Threads...
Thread / Author Replies Views Last Post
by UzziJul 1, 2017 11:08 AM 2 639 Jul 1, 2017 11:08 AM
Last Post: Avira
by Das_VirusMay 4, 2016 04:29 PM 7 504 May 4, 2016 04:29 PM
Last Post: pbhuvanesh
by AntraxtFeb 13, 2016 12:10 PM 0 101 Feb 13, 2016 12:10 PM
Last Post: Antraxt