How to install Kali Linux on Raspberry Pi
Follow these simple steps to install the penetration testing software on the compact computer for mobile hacking
For ethical hackers that want a bit more portability, Kali Linux on the Raspberry Pi might be just the ticket. The Raspberry Pi is a small, credit card-sized computer that doesn't require a lot of power to use and when you combine it with Kali Linux, you get a super-portable network testing machine that you can take anywhere.
You can run it on your laptop to crack nearby Wi-Fi passwords, spoof networks, test for Bluetooth vulnerabilities, and tons of other things, and you can even add a touch screen if you want to avoid installing Kali Linux on your primary computer.
To get started you'll need a Raspberry Pi 2/3, a power supply, an HDMI cable, a minimum 8GB SD-Card and a keyboard and a mouse for control.
Downloading the Kali image for Raspberry Pi
To begin, you'll need to find and download the Kali Linux 2.0 image file for the Raspberry Pi from the Offensive Security downloads area. There are other image files so scroll down to find the Raspberry Pi2/3 download. If you're planning on using Kali for security testing purposes, it's crucial to verify that what you're installing is a genuine version of Kali, rather than a bogus lookalike. Detailed instructions on how to do so can be found on the Kali website.
After you have the file downloaded it will need to be extracted. Most computers will not have the right software to extract it, but WinRAR can be downloaded and installed to extract the image file if you don't already have software for that purpose.
When you have extracted the image, you're ready to write it to an SD-Card. The minimum size is 8GB, although using something bigger like 16GB or even 32GB is considerably better as it will give you more space to download and run tools and apps.
From there, load the image file into Win32Disk Imager (a Windows program for saving and restoring images from removable drives) and write it to the correct drive, making sure you have picked the correct one as it will overwrite any drive that is selected. It will take a few minutes to write the package, and will state 'Write Successful' when it has completed.
Installing Kali on Raspberry Pi
Once the image is written to the SD-Card, it is ready to install into the Pi. Everything can now be plugged into a monitor or TV with a HDMI cable and you can even add an old keyboard and mouse for control.
After powering up the Pi it will go through a boot up process where the screen will go blank a few times before you can finish. For the final step, a login prompt will appear asking for a username and a password. The default should be 'root' and 'toor' respectively.
Naturally, it goes without saying that you'll want to change the access credentials to something more secure as soon as possible, but you should also change the SSH host keys, as the Kali image for Raspberry Pi comes with a set of default keys pre-configured. From the command line, use the following commands to change your SSH host keys:
root@kali:~ rm /etc/ssh/ssh_host_*
root@kali:~ dpkg-reconfigure openssh-server
root@kali:~ service ssh restart
Installing hacking tools
Once that's done, enter the command startx from the command line to boot into the graphical desktop environment. By default, ARM-based Kali images come with the bare minimum of tools pre-installed, but you can use Kali metapackages to install new ones. Various metapackages are available containing different groups of tools for specific purposes such as password cracking or Wi-Fi analysis.
The full list of available metapackages can be found here. You can install the 'kali-linux-full' metapackage to get all the tools that are included with the default desktop image of Kali, or you can get every single available tool with the 'kali-linux-all' metapackage. Alternatively, you can also pick specific metapackages to install based on your needs. All metapackages are installed using the standard Linux apt-get method - for example, to get the complete toolset, you'd use the command apt-get install kali-linux-all.
Once you've installed your desired tools and made sure you've changed the default passwords, you're all set to start using Kali. Happy hacking!
The IT Pro guide to Windows 10 migration
Everything you need to know for a successful transitionDownload now
Managing security risk and compliance in a challenging landscape
How key technology partners grow with your organisationDownload now
Software-defined storage for dummies
Control storage costs, eliminate storage bottlenecks and solve storage management challengesDownload now
6 best practices for escaping ransomware
A complete guide to tackling ransomware attacksDownload now