Installing Tor in Kali Linux

by

What is Tor?

Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security. This guide guides your through installing tor in Kali Linux.

 

Why anonymity matters?

Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location.
[Source: https://www.torproject.org/]

 

Installing Tor in Kali Linux:

 

Step 1: Getting tor service ready

There are 3 ways of installing Tor service in Kali Linux. You can install Tor by following any of these options:

 

Option #1: Install Tor from Kali Repository

Tor is available in Kali repository, to install it directly from the repository open your Terminal and type this:

If no error occurs, follow the second step.

 

Option #2: Install Tor from Debian Wheezy Repository

If you can’t install Tor using the first method then you may try this option. In this way we are going to add the official Tor repository according to our Debian distribution. Not to be confused, Kali is actually based on Debian and it uses the package management from “Wheezy”. So we are going to use “Wheezy” as our distribution.
Now open your terminal and follow these steps:

 

Step #1: Add repo to sources.list file

Lets add the distribution in the list by opening the sources.list file

Now add the following line at the bottom of the file,

 

Step #2: Add GPG Keys

Now we need to add the gpg key used to sign the packages by running the following commands:

 

Step #3: Update package lists

Lets refresh our sources:

 

Step #4: Install singing keys

Now, before installing the Tor we must add the signing key,

 

Step #5: Install Tor from Debian repository

Finally,

Now Tor should be installed!
If no error occurs, follow the second step.

 

Option #3: Install Tor from development branch

If you are an advanced user and you want to install Tor using the development branch then this method is for you.

 

Step #1: Add Tor project repository to sources.list

You need to add a different set of lines to your

file:

 

Step #2: Add GPG keys, keyring and install Tor

Then run the following commands at your command prompt:

Now Tor should be installed!
If no error occurs, follow the second step.
Note: This release will provide you more features but it contains bugs too.

 

Option #4: Build and Install Tor from sources

If you want to build your own debs from source you must first add an appropriate

line to sources.list.

You also need to install the necessary packages to build your own debs and the packages needed to build Tor:

Then you can build Tor in

:

Now you can install the new package:

 

Step #2: Downloading and Running Tor bundle

Download the Tor Bundle from here,
https://www.torproject.org/projects/torbrowser.html.en
Download the architecture-appropriate file above, save it somewhere, then run one of the following two commands to extract the package archive:

or (for the 64-bit version):

(where LANG is the language listed in the filename).
Once that’s done, switch to the Tor browser directory by running:

(where

is the language listed in the filename).
To run the Tor Browser Bundle, execute the start-tor-browser script:

This will launch

and once that connects to Tor, it will launch

.
Note: Do not unpack or run TBB as root. (though in Kali Linux, it doesn’t make any differences)

 

Conclusion

Did you know that you can do the followings using TOR?

DOS/DDOS attacks

Metasploit related

SQLMap and Google Dorks

Thanks for reading. Please share with friends.

 

Another way is to kill tor as TOR daemon was already running which Vidalia didnt like.

Followed by the following command:

and then retry.

No it doesn’t require FireFox. You can use ProxyChain to pipe Tor to IceWeasel.

should do it. The benefit of using ProxyChains is that you can use almost any application via that … i.e.

etc. Cheers,