Certainly! Let's go through the complete steps from the beginning to generate a custom .onion address starting with IMVICKYKUMAR using the mkp224o tool, assuming you're using a Linux-based system like Ubuntu.
-
Install Required Dependencies
First, you'll need to install some development tools and libraries to build the
mkp224oproject. These include compilers and thelibsodiumlibrary.Run the following commands to install dependencies:
sudo apt update sudo apt install build-essential autoconf automake libsodium-dev git
build-essential: Installs the essential tools for compiling software (likegccandmake).autoconfandautomake: These are needed for generating build files.libsodium-dev: This is the required library for cryptographic functions.git: Used to clone the repository.
-
Clone the Repository
Use
gitto clone themkp224orepository:git clone https://github.com/cathugger/mkp224o.git
This will create a directory called
mkp224oin your current directory. -
Navigate to the Project Directory
Change to the
mkp224odirectory:cd mkp224o -
Run
autogen.shto Generate Build FilesBefore you can compile the project, run the
autogen.shscript to generate the necessary configuration files:chmod +x autogen.sh # Make sure the script is executable ./autogen.shThis script will create the
configurescript, which is used to configure the build environment. -
Run
configureto Set Up the BuildRun the
configurescript to prepare the environment for building the project:./configure
This will check if your system has the required libraries and tools.
-
Build the Project with
makeOnce the configuration is done, you can compile the project by running:
make
This will compile the
mkp224otool and generate the executable. -
Generate the Vanity .onion Address
After building the tool, you can use it to generate a custom .onion address. For example, to generate a .onion address starting with
IMVICKYKUMAR, use the following command:./mkp224o -d onions IMVICKYKUMAR
This command:
-d onions: Tellsmkp224oto create a directory namedonionsto store the generated private key and .onion address.IMVICKYKUMAR: Specifies the desired prefix for the .onion address.
-
Wait for the Process to Complete
Depending on your system's power and the complexity of the prefix, it may take some time. You will see output like this while the process is running:
set workdir: onions/ sorting filters... done. filters: imvickykumar in total, 1 filter using 4 threads
The process is working, but it may take time depending on the number of threads available and your system’s performance.
-
Check for the Generated Address
Once the process is finished, you can find the private key and the generated .onion address in the
onions/directory.Check the
onions/folder for the generated files:ls onions/
You should see something like:
hs_ed25519_secret_key: The private key file.hs_ed25519_public_key: The public key.hostname: The generated .onion address.
-
Set Up Tor Hidden Service
Now, to use your custom .onion address, you need to configure your Tor hidden service.
-
Open the
torrcfile (located at/etc/tor/torrc):sudo nano /etc/tor/torrc
-
Add the following lines to configure your hidden service to use the generated private key and start the service on port 80:
HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:8080
This configuration tells Tor to use the directory
/var/lib/tor/hidden_service/for your hidden service. -
Save and close the file by pressing
CTRL + O, thenEnter, andCTRL + Xto exit.
- Copy the Private Key
Move the private key you generated into the hidden service directory:
sudo cp onions/hs_ed25519_secret_key /var/lib/tor/hidden_service/hs_ed25519_secret_key- Restart the Tor Service
Restart Tor for the changes to take effect:
sudo systemctl restart tor- Access Your Hidden Service
After restarting Tor, you can now access your custom .onion address using the Tor browser. The address will be saved in the hostname file within the onions/ directory.
To get your .onion address, run:
cat onions/hostnameThis will display the full .onion address you just generated.
# Install dependencies
sudo apt update
sudo apt install build-essential autoconf automake libsodium-dev git
# Clone the repository
git clone https://github.com/cathugger/mkp224o.git
cd mkp224o
# Run autogen.sh to prepare the build
chmod +x autogen.sh
./autogen.sh
# Configure the project
./configure
# Build the project
make
# Generate the vanity .onion address
./mkp224o -d onions IMVICKYKUMAR
# Check the generated address
cat onions/hostname
# Configure Tor hidden service
sudo nano /etc/tor/torrc
# Add the following lines:
# HiddenServiceDir /var/lib/tor/hidden_service/
# HiddenServicePort 80 127.0.0.1:8080
# Copy the private key to the hidden service directory
sudo cp onions/hs_ed25519_secret_key /var/lib/tor/hidden_service/hs_ed25519_secret_key
# Restart Tor
sudo systemctl restart torNow you should have your custom .onion address live and accessible via the Tor browser!
Let me know if you need further clarification or run into any issues.