Saturday, September 5, 2015

Install the Newest Version of Tor in Kali 2.0

You can install the Tor service (not the browser bundle,) from the repository by using `apt-get install tor` however since Kali doesn't keep its repositories up to date, you will get an older version of Tor. This post will show you how to install the most current version of Tor. Due to Kali 2.0 not having some libraries installed that older versions of Kali had, and some other issues, this process is harder than it should be and used to be.

To start, visit and expand the Source Code section. Then click the Download Source Code button and save the download.

Next open the file you downloaded and extract it to wherever you want, I chose my Desktop. If you try to build Tor at this point, you will run into some errors. To fix these errors, we need to install the missing dependencies. To do this, enter the following in terminal:
apt-get install libevent-dev libssl-dev 
Now that we have all the dependencies installed, go ahead and in terminal change to the extracted tor folder, in my case this is `cd ~/Desktop/tor-`. Now enter the following:
make install 
If you encountered any errors, please leave a comment below and I will try to help you promptly. If everything went well, typing `tor` in terminal should launch it, however I received the following error, "bash: /usr/sbin/tor: No such file or directory," but running `man tor` opened the manual. I don't know why it was trying to run tor from that directory, perhaps it was because I had installed and then removed Tor using apt-get. Restarting Kali seemed to fix the issue.

If you have previously installed Tor via apt-get, then run `tor --version` to make sure it is the version we just built. If it isn't, run 'apt-get remove tor' to uninstall the old version.

Another helpful tool to use with Tor is TorSocks. Torsocks allows you to use most applications in a safe way with Tor. It ensures that DNS requests are handled safely and explicitly rejects any traffic other than TCP from the application you're using. Type `torsocks` in terminal to see if it is installed. If it doesn't run, then you need to use `apt-get install torsocks` to install it. To use TorSocks, you simply enter torsocks appname to proxy most applications through Tor. You can test this by running, `torsocks curl` this should return the IP address of the tor exit node, to verify that it isn't your own IP address, just run `curl` to display your actual IP address.

Thanks for reading, check out my YouTube videos, I have a lot of stuff on Tor and Kali. Follow me on Twitter, @gFogerlie, Google+ and Facebook and you can subscribe to me on Youtube if you want to keep up to date.

No comments:

Post a Comment