Saturday, September 5, 2015

How to Install Firefox in Kali 2.0

Iceweasel is often out of date, and this is true with Kali 2.0. So if you want a current version of FireFox then I will show you the easiest way I have found to install it. Unlike some other methods, this one shouldn't cause problems with other programs, and I've heard, but cannot confirm, you may not need to uninstall Iceweasel. I'll explain why I cannot confirm this after I show you how to install it.

So open terminal and enter the following to uninstall Iceweasel:
apt-get remove iceweasel
Now we need to tell Kali how to get a project that will get the latest version of FireFox for Kali (or other Debian systems.) To do this enter the following in terminal, it is all one line:
echo -e "\ndeb all main" | tee -a /etc/apt/sources.list > /dev/null
Next we need to add a key via apt-key in terminal:
apt-key adv --recv-keys --keyserver C1289A29
All that's left is to update and install firefox:
apt-get update
apt-get install firefox-mozilla-build
 That's it! Now you can find FireFox in the Application menu or run it from terminal by typing `firefox`. Don't worry if you see a GLib error when running it from terminal.

I said you may not need to uninstall Iceweasel but I cannot verify this because I uninstalled it while attempting a previous FireFox install. Now that I have installed FireFox via the method I showed, I tried to reinstall Iceweasel but I get the following error that is caused by having FireFox:
diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel' clashes with `diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build

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.

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.