Install Tor as a Root in Kali Linux

Install Tor in Kali Linux Root Account

In this tutorial we will see how to install TOR by compiling it like any other software in the Kali Linux root account. The tutorial will show you the procedure from A to Z to be anonymous to 90% (TOR to its flaws but, let's fill them).
The tutorial allows you to install TOR so as to integrate it into the system in the root account so he can anonymize your connection. Normally TOR can not be installed on the administrator root account in Kali Linux, but we'll fix that.
Attention, always do tests to make sure that your software be taken in charge with TOR on port 9050 with the IP address. TOR can fail then took a VPN in addition to the case where, especially for all protocols that make queries DNS (UDP on port 53).
Refresh your sources by running the following (as root) command in the Terminal:
root@kali:~# apt-get update
We'll do some folder to organize our installation, you can delete them when you're done.
root@kali:~# mkdir setup
root@kali:~# cd setup
root@kali:~# mkdir tor
root@kali:~# mkdir vidalia
You must also install the packages needed to build TOR and Vidalia:
root@kali:~# apt-get install build-essential fakeroot devscripts qt4-dev-tools qt4-designer libqt4-dev g++ cmake

Install TOR in Kali Linux on the root

You need to install the necessary packages to build your own debs of TOR:
root@kali:~# apt-get build-dep tor
Then you can build Tor in/root/setup/tor/debian-packages:
root@kali :~# cd tor
root@kali :~# mkdir debian-packages
root@kali :~# cd debian-packages
root@kali :~# apt-get source tor
root@kali :~# cd tor-*
root@kali :~# debuild -rfakeroot -uc -us
root@kali :~# cd ..
Now you can install the new package:
root@kali:~# sudo dpkg -i tor_*.deb
Restart the PC.

Install Vidalia in Kali Linux on the root

You need to install the necessary packages to build your own debs from Vidalia:
root@kali:~# apt-get build-dep vidalia
Then you can build Vidalia in/root/setup/vidalia/debian-packages:
root@kali:~# cd /root/setup/vidalia
root@kali:~# mkdir debian-packages
root@kali:~# cd debian-packages
root@kali:~# apt-get source vidalia
root@kali:~# cd vidalia-* 
root@kali:~# debuild -rfakeroot -uc -us 
root@kali:~# cd ..
Now you can install the new package:
root@kali:~# sudo dpkg -i vidalia_*.deb
Restart the PC

Configuration of vidalia in Kali Linux on the root account

It is sometimes necessary to stop TOR before launch Vidalia particularly where TOR is launched at startup in Vidalia preferences:
root@kali:~# /etc/init.d/tor stop
To launch Vidalia, Vidalia simply type in the Terminal or use the shortcut Vidalia offer in Applications > Internet. "" Vidalia work properly go into settings > advanced and check the top box ' use a TCP (Control Port) connection.
Polipo is a HTTP proxy that uses by default the port 8118 and which can be used instead of Privoxy. It is used to prevent potential problems with TOR enabling to offer best anonymity, it is recommended for users of TOR.
Many applications do not support installation of setting A proxy sock but only the http proxy settings. Torsocks allows also to the roasting of many applications, including GUI applications.
Polipo is used to translate the http traffic to the traffic of sock. The disadvantage of using Polipo is that under normal circumstances, it is only a http listening port only to the TOR socks proxy port.
Privoxy can be used instead of Polipo. The official TOR doc recommends not to start both at the same time, as two proxies should not listen on the same port. This creates conflicts. To install Polipo type in the Terminal the command above.
root@kali:~# apt-get install polipo

Configure Polipo in Kali Linux in the root account
The configuration is done in the file/etc/polipo/config. To avoid difficult manipulations, the creators of TOR have a configuration file that you can download on the official repository via the Terminal, here is the official file close.
root@kali:~# wget
After download you need put it in the directory/etc/polipo/instead of the default configuration file. Save it just in case where:
root@kali:~# mv /etc/polipo/config /etc/polipo/
root@kali:~# mv polipo.conf /etc/polipo/config
Verify that the port is the 9050 (default port of Tor for socks). To do this in a terminal, run the command:
root@kali:~# cat /etc/polipo/config | grep -i socksParentProxy
Restart polipo.
root@kali:~# /etc/init.d/polipo restart
To launch Polipo on startup, set it up in the Vidalia settings. In the setting menu > General check the box 'Start an application proxy when TOR starts' and click on 'Browse '. Select polipo-control in/usr/lib/polipo /. For the argument of the proxy application put the configuration file by writing/etc/polipo/config

Installation of Torsock

Torsocks is an application for Linux, BSD and Mac OS x that allows you to use applications such as SSH, IRSSI with TOR network.
Torsock allows you to use most of the applications 'socks-firendly' in a way more secure Tor. In fact it ensures that DNS queries are handled safely and explicitly rejects UDP traffic of the application you are using.
root@kali:~# sudo apt-get install torsocks
Once you have installed Torsock, just run the following in the Terminal.
root@kali:~# usewithtor [application]
Thus, for example, you can use ssh to by:
root@kali:~# usewithtor ssh username @
or start pidgin by doing:
root@kali:~# usewithtor pidgin
An alternative to usewithtor is:
root@kali:~# torsocks pidgin

Configure TOR in Kali Linux or a software like a Web browser

You can configure TOR directly in the system settings by going to the Applications menu > system tools > Preferences > system settings > network and click on proxy server. Choose the manual method. To configure TOR in a software you must specify the IP address with port 9050 in its configuration. In case the software does not support the connection with a Socks proxy you can specify the port 8118 Polipo instead.

To make anonymous your internet browsing from the DNS you can modify a configuration by typing about: config in the URL bar by putting network.dns.DisablePrefetch to true. You can improve your anonymity with these Firefox plugins.
  • No.-script.
  • IPfuck
  • DuckDuckGo more
  • HTTPS everywhere
  • AdBlock

No comments

Powered by Blogger.