OpenSource For You

Katoolin: Installing Kali Linux Tools on a Debian-based OS

In this article, we feature Katoolin, a script that facilitate­s the installati­on of Kali Linux tools on Kali Linux or a Linux distributi­on of your choice. With Katoolin, the user can also add or remove Kali Linux repositori­es.

-

Kali Linux is a Debian-based Linux security distributi­on for those whose main concern is security – primarily, penetratio­n testing, security auditing, forensics and reverse engineerin­g. It has over 600 tools to aid in profession­al hacking. Though generally not used as an ‘everyday’ operating system, it is specifical­ly engineered for profession­al pen testing and security auditing. As such, it is not for first-time Linux users.

But, what if you want to experiment with penetratio­n testing or you just want a taste of Kali Linux tools but are not willing to leave the comfort of your operating system? What if you want the best of both worlds? This is where the Katoolin tool comes in handy.

Katoolin is a script that installs all Kali Linux tools in your Debian-based operating system. All you need is Python 2.7 and the Git package installed in your system. Using this script, you can add and remove Kali Linux repositori­es.

In this article, there will be a brief introducti­on to Kali Linux and a tutorial on the installati­on of the Katoolin script in a Linux system. Later, there is a short guide on how to use Katoolin too. Ubuntu 14.04 64-bit will be used to guide you through the installati­on.

An introducti­on to Kali Linux

Kali is a complete top-to-bottom rebuild of BackTrack Linux and is developed, maintained and funded by Offensive Security. It was born out of the need to create a distributi­on that is better equipped to handle the needs of a profession­al pen tester or an ethical hacker.

It has over 300 tools including Wireshark, Nmap, Armitage, Aircrack, Burp Suite, etc. Kali is best suited for people who want to poke holes in a network. It has tools to detect vulnerabil­ities in network systems. This helps to test the security of the network as a whole, which is, in fact, Kali’s motto, “The best defence is a good offence!”.

Salient features of Kali Linux

It uses Git as its VCS and supports a large number of wireless devices. As it is FHS (File Hierarchy Standard) compliant software, its users can easily trace the libraries, support files, etc. It has multi-lingual support and is completely customisab­le, down to the kernel. It has root access by default. Usually, in normal Debian distributi­ons, this is not the case as it is a good practice to activate the root only when required. In Kali, though, this approach would be a hindrance as the tools given in the package require admin access. This is another reason why first-time Linux users are discourage­d from using this operating system, as they will tend to make mistakes if they are working with root privileges. It has network services disabled. This is to keep the system secure against the many packages that will be

installed in the system. One of the major goals that were kept in mind while creating Kali was that it should support a variety of hardware. Hence, it offers support on i386, AMD64 and ARM (both ARMel and ARMhf) platforms. It is developed in a secure environmen­t. This is necessary, considerin­g the nature of the operating system. Kali Linux is on a rolling release model. This means that instead of being based on standard Debian releases, it is constantly updated with the latest features and patches. This means that you only need to ensure that all the updates are installed. Keeping in mind what Kali was primarily developed for, maintainin­g the integrity of the system is necessary. Hence, as given in the official documentat­ion of Kali, it has a set of minimal and trusted repositori­es.

Katoolin

Katoolin is a script primarily written in Python, which allows the installati­on of Kali Linux tools in our Debianbase­d operating system, like Ubuntu. Its code is available on GitHub. We will be cloning the code into a repo and then will follow a set of simple commands to get it up and running.

Installati­on

All we require is Python 2.7 and the Git package installed. To install Git, just type the following command:

sudo apt-get install git

Gain root access by typing the command below:

sudo -i

Then, clone the code to a particular directory, using the following command:

git clone https://github.com/LionSec/katoolin.git cp katoolin/katoolin.py /usr/bin/katoolin

To make it executable, use the following command:

chmod +x /usr/bin/katoolin

Now, to run Katoolin, use the command given below:

sudo katoolin How to work with Katoolin

Katoolin is extremely simple to work with. It has two basic commands—‘back’ to go one step back as you navigate, and ‘gohome’ to go to the main menu. The main menu looks something like what’s shown in Figure 3. To add Kali repositori­es and to update, Option 1 is selected. The main menu on selecting Option 1 is given in Figure 4.

 ??  ??
 ??  ?? Figure 2: Sample output: Katoolin installed
Figure 2: Sample output: Katoolin installed
 ??  ?? Figure 3: Main menu
Figure 3: Main menu
 ??  ?? Figure 5: Sample output: Updating repositori­es
Figure 5: Sample output: Updating repositori­es
 ??  ?? Figure 4: Sample output: Main menu-1
Figure 4: Sample output: Main menu-1
 ??  ?? Figure 6: Sample output: Adding repositori­es
Figure 6: Sample output: Adding repositori­es
 ??  ?? Figure 1: Sample output: Commands to install Katoolin
Figure 1: Sample output: Commands to install Katoolin

Newspapers in English

Newspapers from India