INSTALL TOR UNDER KALI LINUX VIA A SCRIPT

Tor ( acronym for The Onion Router , literally: “the onion router”) is a decentralized global network of routers , organized in layers, called onion nodes , whose task is to anonymously transmit TCP streams . This is how any TCP- based Internet exchange can be made anonymous using Tor . It is free software distributed under a revised BSD license .

The Tor project received the 2010 free software award , in the “project of social interest” category  .

SOURCE: WIKIPEDIA

  • Double click on the script below then right click copy.

[bash]
#! / bin / bash
# Original tor-installer script (C) by www.kali-linux.fr
# Under license GPLv3 http://www.gnu.org/licenses/gpl.txt

red = ‘\ e [0; 31m’
green = ‘\ e [0; 32m’
NC = ‘\ e [0m’

function errortest () {
if [$? == 0]
then
echo -e “[$ green * $ NC] Ready !!”
else
echo -e “[$ red * $ NC] Error !!”
fi
}

echo “r ;;
,,
,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.,. .
2rriSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSirrs,;, …
XsS5522222222222222222222222222222222222Siirs …:,. ,,
X5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX222ii,:, ;; :: ,,.
X2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSi, :: ;;,;:
X2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSi ;;; ..,:,
X5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSi,: ;; :: S
X5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSi $., ;::
X5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSi B :: r ;.
Xi522222222222XXXXXXXXXXXXXXXXXX22222222222si i.,; Rrr; r ;; @
2S5222222222252XXXXXXXXXXXXXXXX2XXXX2222225Ss. 9; rrrsiiiiiiirX
: XXXXXX2 @ S55XXXXXXXXXXXXXXX2X2 ;; 3XXXXX; ..AA rrrisssiS52222552
S5XXXXXXXXXXXXXXX2X X, @iB srssi52222XXXXX222X
i52XXXXXXXXXXXXXX25:: S @ r9 rssS2XXXXXXXXXXXXX2X
i52XXXXXXXXXXXXXX5S A, ,,, h # rrXM rsS2XXXXXXXXXXXXXXX2X
i52XXXXXXXXXXXXXXX2Si; 3,: G @ srrsh rs5XXXXXXXXXXXXXXXXX2X
i52XXXXXXXXXXXXX2Si M. 9; .r H @ iisrr2M ri2XXXXXXXXXXXXXXXXXX2X
i52XXXXXXXXXXXXX2Si B .s9; , G @ HS5SirrSM iSXXXXXXXXXXXXXXXXXXX2X
i52XXXXXXXXXXXXX2Si ,; GG; :, A, @ 2225SirrX sS2XXXXXXXXXXXXXXX2255S2
i52XXXXXXXXXXXXX2Si H iH2. .;,; G @ B52222Siri iSXXXXXXXXXXXXXXX222225X
i52XXXXXXXXXXXXX2Si M r # i;,: S Si S @ S222225Sri iSXXXXXXXXXXXXXX222i
i52XXXXXXXXXXXXX2Si AA .s; h; $ @ # 222XX222Srh iSXXXXXXXXXXXXX22
i52XXXXXXXXXXXXX2Si A B2: rr,, $,, X @ hS2XXX222is iSXXXXXXXXXXXXX52
i52XXXXXXXXXXXXX2Si r 5G RHR, AH @ HS2XXXX225rB iSXXXXXXXXXXXXX5S
i52XXXXXXXXXXXXX2Si; MX i @ h @ S. Mi2XXXXX22sA iSXXXXXXXXXXXXXSi
i52XXXXXXXXXXXXX2Si r # @r, RRI $ r @ Bi2XXXXXX2sH iSXXXXXXXXXXXXXSi
i52XXXXXXXXXXXXX2Si @ rA iX 3, 5 ;; i @ Ai2XXXXXX2i iSXXXXXXXXXXXXXSi
i52XXXXXXXXXXXXX2Si A. 2h, #, @ A i2i2 9S2XXXXXX52 iSXXXXXXXXXXXXXSi.
i52XXXXXXXXXXXXX2Si @: s X: @ @ ih5h 252XXXXX2i iSXXXXXXXXXXXXXSi.
i52XXXXXXXXXXXXX2Si $ @ @ A @ 2 Ar @@ # i22XXXX2S iSXXXXXXXXXXXXXSi.
i52XXXXXXXXXXXXX2Si $ @ Mr .. @ HS: @ i2XX22S2 iSXXXXXXXXXXXXXSi
i52XXXXXXXXXXXXX2Si i 3: M @ s @ $;. p @ i5222S5A iSXXXXXXXXXXXXXSi
i52XXXXXXXXXXXXX2Si r :: i @; s @ @; X # @@ 5iSiSXB iSXXXXXXXXXXXXXSi
iS2X22222222222X2ii GXs; 2S, s5sBG @@@ srS3H ii2222222222222iS
X2222222222222222XX hM ## AB @ # @@ # AB # 222222222222

echo “Press a key to continue”
read

echo “deb http://deb.torproject.org/torproject.org wheezy main” >> /etc/apt/sources.list
clear
echo “[*] We install the keys….”
gpg –keyserver keys.gnupg.net –recv 886DDD89
<code> gpg –export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add –
</code> errortest
echo “Press a key to continue”
read
clear
echo “[*] Updating repositories….”
apt-get update
clear
echo “[*] Installation of TOR”
apt-get install -y deb.torproject.org-keyring
apt-get install tor
errortest
echo “Press a key to continue”
read
echo “

errortest
echo “Press a key to continue”
read
echo “[*] Installation of iceweasel-torbutton”
echo “Torbutton is no longer supported. \ nUsers should be using Tor Browser Bundle, not installing Torbutton themselves.”
errortest
echo “Press a key to continue”
read
clear
echo “[*] Installation of Privoxy”
apt-get install Privoxy
echo “[*] Configuration of privoxy”
echo “forward-socks5 / 127.0.0.1:9050.” >> / etc / privoxy / config
errortest
echo “Press a key to continue”




echo “Press a key to continue”
read
echo “Tor is now available on your kali. Add 127.0.0.1:9050 as a proxy to your browser”
[/ bash]

  • Create a text file on Kali then assign the execution rights to it with the following command:

[bash] chmod + x le_fichier [/ bash]

  • Run the script and respond with “y” if necessary.
  • Locate the line containing “127.0.0.1:8118” in “/ etc / privoxy / config” then add “listen-address 127.0.0.1:8118” as follows:
  • [bash]
    # Default value:
    #
    listen-address 127.0.0.1:8118
    #
    # Effect if unset: [/ bash]
  • Restart the service to take the change into account:
  • [bash] service privoxy restart [/ bash]
  • Launch Vidalia to connect to the Tor network: Applicaton -> Internet -> Vidalia
  • At the end, configure your preferred browser to use a “socks” proxy as follows: 127.0.0.1:9050 and the http proxy: 127.0.0.1:8118

And finally don’t forget to go to http://check.torproject.org to check your anonymity.

or simple way

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:

apt-get install tor

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 the repo to sources.list file

Let’s add the distribution in the list by opening the sources.list file

leafpad /etc/apt/sources.list

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

deb http://deb.torproject.org/torproject.org wheezy main
Step #2: Add GPG Keys

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

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
Step #3: Update package lists

Lets refresh our sources:

apt-get update
Step #4: Install singing keys

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

apt-get install deb.torproject.org-keyring
Step #5: Install Tor from Debian repository

Finally,

apt-get install tor

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

Option #3: Install Tor from the 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 /etc/apt/sources.list file:

deb http://deb.torproject.org/torproject.org wheezy main
deb http://deb.torproject.org/torproject.org tor-experimental-0.2.5.x- wheezy main
Step #2: Add GPG keys, keyring and install Tor

Then run the following commands at your command prompt:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
apt-get update
apt-get install tor deb.torproject.org-keyring

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 deb-src line to sources.list.

deb-src http://deb.torproject.org/torproject.org wheezy main
deb-src http://deb.torproject.org/torproject.org wheezy main
deb-src http://deb.torproject.org/torproject.org tor-experimental-0.2.5.x--wheezy main

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

apt-get install build-essential fakeroot devscripts
apt-get build-dep tor

Then you can build Tor in ~/debian-packages:

mkdir ~/debian-packages; cd ~/debian-packages
apt-get source tor
cd tor-*
debuild -rfakeroot -uc -us
cd ..

Now you can install the new package:

dpkg -i tor_*.deb

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:

tar -xvzf tor-browser-gnu-linux-i686-2.3.25-15-dev-LANG.tar.gz

or (for the 64-bit version):

tar -xvzf tor-browser-gnu-linux-x86_64-2.3.25-16-dev-LANG.tar.gz

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

cd tor-browser_LANG

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

./start-tor-browser

This will launch Vidalia and once that connects to Tor, it will launch Firefox.

Leave a Reply

avatar
  Subscribe  
Notify of