How to install Tor on Backtrack 5

Tor is an open source Anonymous Internet tool. It protects your personal identification from tracking systems by changing the source IP address frequently. Application will create many virtual tunnels through the tor network.

By default Tor is not integrated in BackTrack 5. Why use Tor on Backtrack ? Normally Tor is used to protect the browsing security but Tor can be used for network scanning tools and other information gathering tools, in my next article i will explain how to configure Tor for console applications.

Follow the installation steps

Open /etc/apt/sources.list file and add following line

deb http://deb.torproject.org/torproject.org lucid main

Open command prompt and run follwing commands

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
apt-get update
apt-get install tor tor-geoipdb
apt-get install privoxy

After installing Privoxy, Open /etc/privoxy/config and append follwing line

forward-socks4a / 127.0.0.1:9050 .

/etc/init.d/privoxy start

Configure your clients with Ip address 127.0.0.1 and port 8118

How to check

go to http://cmyip.com or  http://www.whatismyip.com to know your current Ip address

About Manjunath Aka Punter

is a IT Security Consultant who specializes in Penetration Testing and Vulnerability Assessment and having Strong Skills in Network, Web Application, Web Services and Wireless Security Testing Passionate about OpenSource,Interest in LockPicking, RFID Security etc. Read his blog at punter-infosec.com

Check Also

Update timthumb.php to prevent Zero Day vulnerability

Recently many sites are infected with timthumb script vulnerability.  Its a Zero Day vulnerability inside image …

Comments

  1. Hello, i’m having trouble trying to install/setup TOR because i keep getting a monodevelop & monodoc-base error. do you or anyone else by chance know how to correct this error? i’m using Backtrack 5 the error i get i as follows:

    root@bt:~# apt-get install tor tor-geoipdb
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    tor is already the newest version.
    tor-geoipdb is already the newest version.
    The following packages were automatically installed and are no longer required:
    libdmraid1.0.0.rc16 python-pyicu libdebian-installer4 cryptsetup libecryptfs0
    reiserfsprogs rdate bogl-bterm ecryptfs-utils libdebconfclient0 dmraid keyutils
    Use ‘apt-get autoremove’ to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
    2 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up monodoc-base (2.4.4~svn151842-1ubuntu4) …

    Processing triggers for monodoc-base …
    /usr/bin/update-monodoc: line 3: [: argument expected
    generating monodoc search index…
    /usr/bin/update-monodoc: line 9: monodoc: command not found
    dpkg: error processing monodoc-base (–configure):
    subprocess installed post-installation script returned error exit status 127
    dpkg: dependency problems prevent configuration of monodevelop:
    monodevelop depends on monodoc-base (>= 1.0); however:
    Package monodoc-base is not configured yet.
    dpkg: error processing monodevelop (–configure):
    dependency problems – leaving unconfigured
    No apport report written because the error message indicates its a followup error from a previous failure.
    Errors were encountered while processing:
    monodoc-base
    monodevelop
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Thank you for your time and help

  2. For the distribution of linux, if you’re using backtrack 5 gnome version, the distribution is different.

    Mine is “squeeze”

    you can check it by:
    cat /etc/debian_version

  3. I’m sorry. I was wrong about the distribution version.
    you should check it using:

    root@bt:~# lsb_release -a

  4. i dont get what im doin wrong seems its gone?
    apt-get install tor tor-geoipdb
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package tor is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package tor has no installation candidate

  5. Every time i put the command it, I get this message. Why does it abort? Im using VMware to run Backtrack 5 gnome. Its lucid codename. could that be the problem?
    root@bt:~# apt-get install tor tor-geoipdb
    Reading package lists… Done
    Building dependency tree      
    Reading state information… Done
    The following packages were automatically installed and are no longer required:
      libecryptfs0 libdmraid1.0.0.rc16 libdebconfclient0 ecryptfs-utils cryptsetup
      rdate bogl-bterm libdebian-installer4 reiserfsprogs dmraid python-pyicu
      keyutils
    Use ‘apt-get autoremove’ to remove them.
    The following extra packages will be installed:
      polipo torsocks
    Suggested packages:
      mixmaster xul-ext-torbutton
    The following NEW packages will be installed:
      polipo tor tor-geoipdb torsocks
    0 upgraded, 4 newly installed, 0 to remove and 39 not upgraded.
    Need to get 2,517kB of archives.
    After this operation, 7,332kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Abort.

  6. Hi,
    I installed tor after that I can’t use teamviewer, even though can’t browse teamviewer site. Then I uninstalled tor completely, but still teamviewer is not working??
    I tried new version of teamviewer, I tried latest version of firefox, but can’t solve it. Teamviewer is still not working. Any suggestion????

  7. I’m using backtrack 5 only as a live dvd. Is there an easy way of getting Tor installed to the live dvd?It’s strange that Tor came with the previous backtrack 4 r2 and is now not coming with the 5’th version.
    There is a package openvpn coming with backtrack 5, but that programme seems a bit more
    complex to use than Tor and privoxy.

  8. I managed to make it most of the way through. The part I am confused about is the last two steps.

    so I just pasted the forward-socks4a / 127.0.0.1:9050 .

    Now it tells me

    /etc/init.d/privoxy start

    What am i supposed to do with that?
    when i gksu gedit its a text file.

    then it says configure clients with ip blah blah.

    my question is, do I just paste that in and save it?

    Am I a retard missing something in plain sight? any help would be appreciated?

  9. hi ,
    i maned to done everything but in the last line ,
    id ont really get it ….
     
    i got this error bro :
     

    Tor is not an HTTP Proxy
     
    It appears you have configured your web browser to use Tor as an HTTP proxy. This is not correct: Tor is a SOCKS proxy, not an HTTP proxy. Please configure your client accordingly.
    See https://www.torproject.org/documentation.html for more information.”